Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

updated youarei

  • Loading branch information...
commit 308f47aa48c84d9b3f42b3ea37ffcc4eb18a9860 1 parent ab49ecf
@purge purge authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  sqwidget.js
View
2  sqwidget.js
@@ -29,5 +29,5 @@
* see: http://github.com/requirejs/domReady for details
*/
-!function(e,t){e._sqwidget=t()}(this,function(){var requirejs,require,define;return function(global){function isFunction(e){return"[object Function]"===ostring.call(e)}function isArray(e){return"[object Array]"===ostring.call(e)}function each(e,t){if(e){var n;for(n=0;n<e.length&&(!e[n]||!t(e[n],n,e));n+=1);}}function eachReverse(e,t){if(e){var n;for(n=e.length-1;n>-1&&(!e[n]||!t(e[n],n,e));n-=1);}}function hasProp(e,t){return hasOwn.call(e,t)}function getOwn(e,t){return hasProp(e,t)&&e[t]}function eachProp(e,t){var n;for(n in e)if(hasProp(e,n)&&t(e[n],n))break}function mixin(e,t,n,r){return t&&eachProp(t,function(t,i){(n||!hasProp(e,i))&&(r&&"string"!=typeof t?(e[i]||(e[i]={}),mixin(e[i],t,n,r)):e[i]=t)}),e}function bind(e,t){return function(){return t.apply(e,arguments)}}function scripts(){return document.getElementsByTagName("script")}function defaultOnError(e){throw e}function getGlobal(e){if(!e)return e;var t=global;return each(e.split("."),function(e){t=t[e]}),t}function makeError(e,t,n,r){var i=new Error(t+"\nhttp://requirejs.org/docs/errors.html#"+e);return i.requireType=e,i.requireModules=r,n&&(i.originalError=n),i}function newContext(e){function t(e){var t,n;for(t=0;e[t];t+=1)if(n=e[t],"."===n)e.splice(t,1),t-=1;else if(".."===n){if(1===t&&(".."===e[2]||".."===e[0]))break;t>0&&(e.splice(t-1,2),t-=2)}}function n(e,n,r){var i,o,a,s,u,c,l,f,h,p,d,g=n&&n.split("/"),m=g,y=E.map,v=y&&y["*"];if(e&&"."===e.charAt(0)&&(n?(m=getOwn(E.pkgs,n)?g=[n]:g.slice(0,g.length-1),e=m.concat(e.split("/")),t(e),o=getOwn(E.pkgs,i=e[0]),e=e.join("/"),o&&e===i+"/"+o.main&&(e=i)):0===e.indexOf("./")&&(e=e.substring(2))),r&&y&&(g||v)){for(s=e.split("/"),u=s.length;u>0;u-=1){if(l=s.slice(0,u).join("/"),g)for(c=g.length;c>0;c-=1)if(a=getOwn(y,g.slice(0,c).join("/")),a&&(a=getOwn(a,l))){f=a,h=u;break}if(f)break;!p&&v&&getOwn(v,l)&&(p=getOwn(v,l),d=u)}!f&&p&&(f=p,h=d),f&&(s.splice(0,h,f),e=s.join("/"))}return e}function r(e){isBrowser&&each(scripts(),function(t){return t.getAttribute("data-requiremodule")===e&&t.getAttribute("data-requirecontext")===w.contextName?(t.parentNode.removeChild(t),!0):void 0})}function i(e){var t=getOwn(E.paths,e);return t&&isArray(t)&&t.length>1?(t.shift(),w.require.undef(e),w.require([e]),!0):void 0}function o(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function a(e,t,r,i){var a,s,u,c,l=null,f=t?t.name:null,h=e,p=!0,d="";return e||(p=!1,e="_@r"+(O+=1)),c=o(e),l=c[0],e=c[1],l&&(l=n(l,f,i),s=getOwn(C,l)),e&&(l?d=s&&s.normalize?s.normalize(e,function(e){return n(e,f,i)}):n(e,f,i):(d=n(e,f,i),c=o(d),l=c[0],d=c[1],r=!0,a=w.nameToUrl(d))),u=!l||s||r?"":"_unnormalized"+(M+=1),{prefix:l,name:d,parentMap:t,unnormalized:!!u,url:a,originalName:h,isDefine:p,id:(l?l+"!"+d:d)+u}}function s(e){var t=e.id,n=getOwn(_,t);return n||(n=_[t]=new w.Module(e)),n}function u(e,t,n){var r=e.id,i=getOwn(_,r);!hasProp(C,r)||i&&!i.defineEmitComplete?(i=s(e),i.error&&"error"===t?n(i.error):i.on(t,n)):"defined"===t&&n(C[r])}function c(e,t){var n=e.requireModules,r=!1;t?t(e):(each(n,function(t){var n=getOwn(_,t);n&&(n.error=e,n.events.error&&(r=!0,n.emit("error",e)))}),r||req.onError(e))}function l(){globalDefQueue.length&&(apsp.apply(T,[T.length-1,0].concat(globalDefQueue)),globalDefQueue=[])}function f(e){delete _[e],delete S[e]}function h(e,t,n){var r=e.map.id;e.error?e.emit("error",e.error):(t[r]=!0,each(e.depMaps,function(r,i){var o=r.id,a=getOwn(_,o);!a||e.depMatched[i]||n[o]||(getOwn(t,o)?(e.defineDep(i,C[o]),e.check()):h(a,t,n))}),n[r]=!0)}function p(){var e,t,n,o,a=1e3*E.waitSeconds,s=a&&w.startTime+a<(new Date).getTime(),u=[],l=[],f=!1,d=!0;if(!v){if(v=!0,eachProp(S,function(n){if(e=n.map,t=e.id,n.enabled&&(e.isDefine||l.push(n),!n.error))if(!n.inited&&s)i(t)?(o=!0,f=!0):(u.push(t),r(t));else if(!n.inited&&n.fetched&&e.isDefine&&(f=!0,!e.prefix))return d=!1}),s&&u.length)return n=makeError("timeout","Load timeout for modules: "+u,null,u),n.contextName=w.contextName,c(n);d&&each(l,function(e){h(e,{},{})}),s&&!o||!f||!isBrowser&&!isWebWorker||q||(q=setTimeout(function(){q=0,p()},50)),v=!1}}function d(e){hasProp(C,e[0])||s(a(e[0],null,!0)).init(e[1],e[2])}function g(e,t,n,r){e.detachEvent&&!isOpera?r&&e.detachEvent(r,t):e.removeEventListener(n,t,!1)}function m(e){var t=e.currentTarget||e.srcElement;return g(t,w.onScriptLoad,"load","onreadystatechange"),g(t,w.onScriptError,"error"),{node:t,id:t&&t.getAttribute("data-requiremodule")}}function y(){var e;for(l();T.length;){if(e=T.shift(),null===e[0])return c(makeError("mismatch","Mismatched anonymous define() module: "+e[e.length-1]));d(e)}}var v,b,w,x,q,E={waitSeconds:7,baseUrl:"./",paths:{},pkgs:{},shim:{},config:{}},_={},S={},k={},T=[],C={},N={},O=1,M=1;return x={require:function(e){return e.require?e.require:e.require=w.makeRequire(e.map)},exports:function(e){return e.usingExports=!0,e.map.isDefine?e.exports?e.exports:e.exports=C[e.map.id]={}:void 0},module:function(e){return e.module?e.module:e.module={id:e.map.id,uri:e.map.url,config:function(){var t,n=getOwn(E.pkgs,e.map.id);return t=n?getOwn(E.config,e.map.id+"/"+n.main):getOwn(E.config,e.map.id),t||{}},exports:C[e.map.id]}}},b=function(e){this.events=getOwn(k,e.id)||{},this.map=e,this.shim=getOwn(E.shim,e.id),this.depExports=[],this.depMaps=[],this.depMatched=[],this.pluginMaps={},this.depCount=0},b.prototype={init:function(e,t,n,r){r=r||{},this.inited||(this.factory=t,n?this.on("error",n):this.events.error&&(n=bind(this,function(e){this.emit("error",e)})),this.depMaps=e&&e.slice(0),this.errback=n,this.inited=!0,this.ignore=r.ignore,r.enabled||this.enabled?this.enable():this.check())},defineDep:function(e,t){this.depMatched[e]||(this.depMatched[e]=!0,this.depCount-=1,this.depExports[e]=t)},fetch:function(){if(!this.fetched){this.fetched=!0,w.startTime=(new Date).getTime();var e=this.map;return this.shim?(w.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],bind(this,function(){return e.prefix?this.callPlugin():this.load()})),void 0):e.prefix?this.callPlugin():this.load()}},load:function(){var e=this.map.url;N[e]||(N[e]=!0,w.load(this.map.id,e))},check:function(){if(this.enabled&&!this.enabling){var e,t,n=this.map.id,r=this.depExports,i=this.exports,o=this.factory;if(this.inited){if(this.error)this.emit("error",this.error);else if(!this.defining){if(this.defining=!0,this.depCount<1&&!this.defined){if(isFunction(o)){if(this.events.error&&this.map.isDefine||req.onError!==defaultOnError)try{i=w.execCb(n,o,r,i)}catch(a){e=a}else i=w.execCb(n,o,r,i);if(this.map.isDefine&&(t=this.module,t&&void 0!==t.exports&&t.exports!==this.exports?i=t.exports:void 0===i&&this.usingExports&&(i=this.exports)),e)return e.requireMap=this.map,e.requireModules=this.map.isDefine?[this.map.id]:null,e.requireType=this.map.isDefine?"define":"require",c(this.error=e)}else i=o;this.exports=i,this.map.isDefine&&!this.ignore&&(C[n]=i,req.onResourceLoad&&req.onResourceLoad(w,this.map,this.depMaps)),f(n),this.defined=!0}this.defining=!1,this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0)}}else this.fetch()}},callPlugin:function(){var e=this.map,t=e.id,r=a(e.prefix);this.depMaps.push(r),u(r,"defined",bind(this,function(r){var i,o,l,h=this.map.name,p=this.map.parentMap?this.map.parentMap.name:null,d=w.makeRequire(e.parentMap,{enableBuildCallback:!0});return this.map.unnormalized?(r.normalize&&(h=r.normalize(h,function(e){return n(e,p,!0)})||""),o=a(e.prefix+"!"+h,this.map.parentMap),u(o,"defined",bind(this,function(e){this.init([],function(){return e},null,{enabled:!0,ignore:!0})})),l=getOwn(_,o.id),l&&(this.depMaps.push(o),this.events.error&&l.on("error",bind(this,function(e){this.emit("error",e)})),l.enable()),void 0):(i=bind(this,function(e){this.init([],function(){return e},null,{enabled:!0})}),i.error=bind(this,function(e){this.inited=!0,this.error=e,e.requireModules=[t],eachProp(_,function(e){0===e.map.id.indexOf(t+"_unnormalized")&&f(e.map.id)}),c(e)}),i.fromText=bind(this,function(n,r){var o=e.name,u=a(o),l=useInteractive;r&&(n=r),l&&(useInteractive=!1),s(u),hasProp(E.config,t)&&(E.config[o]=E.config[t]);try{req.exec(n)}catch(f){return c(makeError("fromtexteval","fromText eval for "+t+" failed: "+f,f,[t]))}l&&(useInteractive=!0),this.depMaps.push(u),w.completeLoad(o),d([o],i)}),r.load(e.name,d,i,E),void 0)})),w.enable(r,this),this.pluginMaps[r.id]=r},enable:function(){S[this.map.id]=this,this.enabled=!0,this.enabling=!0,each(this.depMaps,bind(this,function(e,t){var n,r,i;if("string"==typeof e){if(e=a(e,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap),this.depMaps[t]=e,i=getOwn(x,e.id))return this.depExports[t]=i(this),void 0;this.depCount+=1,u(e,"defined",bind(this,function(e){this.defineDep(t,e),this.check()})),this.errback&&u(e,"error",bind(this,this.errback))}n=e.id,r=_[n],hasProp(x,n)||!r||r.enabled||w.enable(e,this)})),eachProp(this.pluginMaps,bind(this,function(e){var t=getOwn(_,e.id);t&&!t.enabled&&w.enable(e,this)})),this.enabling=!1,this.check()},on:function(e,t){var n=this.events[e];n||(n=this.events[e]=[]),n.push(t)},emit:function(e,t){each(this.events[e],function(e){e(t)}),"error"===e&&delete this.events[e]}},w={config:E,contextName:e,registry:_,defined:C,urlFetched:N,defQueue:T,Module:b,makeModuleMap:a,nextTick:req.nextTick,onError:c,configure:function(e){e.baseUrl&&"/"!==e.baseUrl.charAt(e.baseUrl.length-1)&&(e.baseUrl+="/");var t=E.pkgs,n=E.shim,r={paths:!0,config:!0,map:!0};eachProp(e,function(e,t){r[t]?"map"===t?(E.map||(E.map={}),mixin(E[t],e,!0,!0)):mixin(E[t],e,!0):E[t]=e}),e.shim&&(eachProp(e.shim,function(e,t){isArray(e)&&(e={deps:e}),!e.exports&&!e.init||e.exportsFn||(e.exportsFn=w.makeShimExports(e)),n[t]=e}),E.shim=n),e.packages&&(each(e.packages,function(e){var n;e="string"==typeof e?{name:e}:e,n=e.location,t[e.name]={name:e.name,location:n||e.name,main:(e.main||"main").replace(currDirRegExp,"").replace(jsSuffixRegExp,"")}}),E.pkgs=t),eachProp(_,function(e,t){e.inited||e.map.unnormalized||(e.map=a(t))}),(e.deps||e.callback)&&w.require(e.deps||[],e.callback)},makeShimExports:function(e){function t(){var t;return e.init&&(t=e.init.apply(global,arguments)),t||e.exports&&getGlobal(e.exports)}return t},makeRequire:function(t,i){function o(n,r,u){var l,f,h;return i.enableBuildCallback&&r&&isFunction(r)&&(r.__requireJsBuild=!0),"string"==typeof n?isFunction(r)?c(makeError("requireargs","Invalid require call"),u):t&&hasProp(x,n)?x[n](_[t.id]):req.get?req.get(w,n,t,o):(f=a(n,t,!1,!0),l=f.id,hasProp(C,l)?C[l]:c(makeError("notloaded",'Module name "'+l+'" has not been loaded yet for context: '+e+(t?"":". Use require([])")))):(y(),w.nextTick(function(){y(),h=s(a(null,t)),h.skipMap=i.skipMap,h.init(n,r,u,{enabled:!0}),p()}),o)}return i=i||{},mixin(o,{isBrowser:isBrowser,toUrl:function(e){var r,i=e.lastIndexOf("."),o=e.split("/")[0],a="."===o||".."===o;return-1!==i&&(!a||i>1)&&(r=e.substring(i,e.length),e=e.substring(0,i)),w.nameToUrl(n(e,t&&t.id,!0),r,!0)},defined:function(e){return hasProp(C,a(e,t,!1,!0).id)},specified:function(e){return e=a(e,t,!1,!0).id,hasProp(C,e)||hasProp(_,e)}}),t||(o.undef=function(e){l();var n=a(e,t,!0),i=getOwn(_,e);r(e),delete C[e],delete N[n.url],delete k[e],i&&(i.events.defined&&(k[e]=i.events),f(e))}),o},enable:function(e){var t=getOwn(_,e.id);t&&s(e).enable()},completeLoad:function(e){var t,n,r,o=getOwn(E.shim,e)||{},a=o.exports;for(l();T.length;){if(n=T.shift(),null===n[0]){if(n[0]=e,t)break;t=!0}else n[0]===e&&(t=!0);d(n)}if(r=getOwn(_,e),!t&&!hasProp(C,e)&&r&&!r.inited){if(!(!E.enforceDefine||a&&getGlobal(a)))return i(e)?void 0:c(makeError("nodefine","No define call for "+e,null,[e]));d([e,o.deps||[],o.exportsFn])}p()},nameToUrl:function(e,t,n){var r,i,o,a,s,u,c,l,f;if(req.jsExtRegExp.test(e))l=e+(t||"");else{for(r=E.paths,i=E.pkgs,s=e.split("/"),u=s.length;u>0;u-=1){if(c=s.slice(0,u).join("/"),o=getOwn(i,c),f=getOwn(r,c)){isArray(f)&&(f=f[0]),s.splice(0,u,f);break}if(o){a=e===o.name?o.location+"/"+o.main:o.location,s.splice(0,u,a);break}}l=s.join("/"),l+=t||(/^data\:|\?/.test(l)||n?"":".js"),l=("/"===l.charAt(0)||l.match(/^[\w\+\.\-]+:/)?"":E.baseUrl)+l}return E.urlArgs?l+((-1===l.indexOf("?")?"?":"&")+E.urlArgs):l},load:function(e,t){req.load(w,e,t)},execCb:function(e,t,n,r){return t.apply(r,n)},onScriptLoad:function(e){if("load"===e.type||readyRegExp.test((e.currentTarget||e.srcElement).readyState)){interactiveScript=null;var t=m(e);w.completeLoad(t.id)}},onScriptError:function(e){var t=m(e);return i(t.id)?void 0:c(makeError("scripterror","Script error for: "+t.id,e,[t.id]))}},w.require=w.makeRequire(),w}function getInteractiveScript(){return interactiveScript&&"interactive"===interactiveScript.readyState?interactiveScript:(eachReverse(scripts(),function(e){return"interactive"===e.readyState?interactiveScript=e:void 0}),interactiveScript)}var req,s,head,baseElement,dataMain,src,interactiveScript,currentlyAddingScript,mainScript,subPath,version="2.1.9",commentRegExp=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,cjsRequireRegExp=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,jsSuffixRegExp=/\.js$/,currDirRegExp=/^\.\//,op=Object.prototype,ostring=op.toString,hasOwn=op.hasOwnProperty,ap=Array.prototype,apsp=ap.splice,isBrowser=!("undefined"==typeof window||"undefined"==typeof navigator||!window.document),isWebWorker=!isBrowser&&"undefined"!=typeof importScripts,readyRegExp=isBrowser&&"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,defContextName="_",isOpera="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),contexts={},cfg={},globalDefQueue=[],useInteractive=!1;if("undefined"==typeof define){if("undefined"!=typeof requirejs){if(isFunction(requirejs))return;cfg=requirejs,requirejs=void 0}"undefined"==typeof require||isFunction(require)||(cfg=require,require=void 0),req=requirejs=function(e,t,n,r){var i,o,a=defContextName;return isArray(e)||"string"==typeof e||(o=e,isArray(t)?(e=t,t=n,n=r):e=[]),o&&o.context&&(a=o.context),i=getOwn(contexts,a),i||(i=contexts[a]=req.s.newContext(a)),o&&i.configure(o),i.require(e,t,n)},req.config=function(e){return req(e)},req.nextTick="undefined"!=typeof setTimeout?function(e){setTimeout(e,4)}:function(e){e()},require||(require=req),req.version=version,req.jsExtRegExp=/^\/|:|\?|\.js$/,req.isBrowser=isBrowser,s=req.s={contexts:contexts,newContext:newContext},req({}),each(["toUrl","undef","defined","specified"],function(e){req[e]=function(){var t=contexts[defContextName];return t.require[e].apply(t,arguments)}}),isBrowser&&(head=s.head=document.getElementsByTagName("head")[0],baseElement=document.getElementsByTagName("base")[0],baseElement&&(head=s.head=baseElement.parentNode)),req.onError=defaultOnError,req.createNode=function(e){var t=e.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script");return t.type=e.scriptType||"text/javascript",t.charset="utf-8",t.async=!0,t},req.load=function(e,t,n){var r,i=e&&e.config||{};if(isBrowser)return r=req.createNode(i,t,n),r.setAttribute("data-requirecontext",e.contextName),r.setAttribute("data-requiremodule",t),!r.attachEvent||r.attachEvent.toString&&r.attachEvent.toString().indexOf("[native code")<0||isOpera?(r.addEventListener("load",e.onScriptLoad,!1),r.addEventListener("error",e.onScriptError,!1)):(useInteractive=!0,r.attachEvent("onreadystatechange",e.onScriptLoad)),r.src=n,currentlyAddingScript=r,baseElement?head.insertBefore(r,baseElement):head.appendChild(r),currentlyAddingScript=null,r;if(isWebWorker)try{importScripts(n),e.completeLoad(t)}catch(o){e.onError(makeError("importscripts","importScripts failed for "+t+" at "+n,o,[t]))}},isBrowser&&!cfg.skipDataMain&&eachReverse(scripts(),function(e){return head||(head=e.parentNode),dataMain=e.getAttribute("data-main"),dataMain?(mainScript=dataMain,cfg.baseUrl||(src=mainScript.split("/"),mainScript=src.pop(),subPath=src.length?src.join("/")+"/":"./",cfg.baseUrl=subPath),mainScript=mainScript.replace(jsSuffixRegExp,""),req.jsExtRegExp.test(mainScript)&&(mainScript=dataMain),cfg.deps=cfg.deps?cfg.deps.concat(mainScript):[mainScript],!0):void 0}),define=function(e,t,n){var r,i;"string"!=typeof e&&(n=t,t=e,e=null),isArray(t)||(n=t,t=null),!t&&isFunction(n)&&(t=[],n.length&&(n.toString().replace(commentRegExp,"").replace(cjsRequireRegExp,function(e,n){t.push(n)}),t=(1===n.length?["require"]:["require","exports","module"]).concat(t))),useInteractive&&(r=currentlyAddingScript||getInteractiveScript(),r&&(e||(e=r.getAttribute("data-requiremodule")),i=contexts[r.getAttribute("data-requirecontext")])),(i?i.defQueue:globalDefQueue).push([e,t,n])},define.amd={jQuery:!0},req.exec=function(text){return eval(text)},req(cfg)}}(this),define("requirejs",function(){}),function(e,t){"function"==typeof define&&define.amd?define("lib/youarei/src/youarei",t):"object"==typeof exports?module.exports=t():e.YouAreI=t()}(this,function(){function e(e){return this.parse(e)}var t=/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,n=/^([^\@]+)\@/,r=/:(\d+)$/,i=/^([^=]+)(?:=(.*))?$/,o=function(e){return"[object Array]"===Object.prototype.toString.call(e)};return e.prototype={parse:function(e){var n=e?e.match(t):[];return this.scheme(n[2]||"").authority(n[4]||"").path_set(n[5]||"").fragment(n[9]||"").query_set(n[7]||"")},clone:function(){var e=this.constructor();for(var t in this)e[t]=this[t];return e},gs:function(e,t,n){return void 0!==e?(this[t]=e,this):n?n(this[t]):this[t]},fragment:function(e){return this.gs(e,"_fragment")},userinfo:function(e){return this.gs(e,"_userinfo",function(e){return void 0===e?e:encodeURI(e)})},path_set:function(e){return this._path_parse(e),this},path_basename_set:function(e){return this._path_trailing_slash=!1,this._path.push(e),this},_path_parse:function(e){e=decodeURIComponent(e||"");var t=e.split("/");return e.match(/^\//)&&(this._path_leading_slash=!0,t.shift()),e.match(/\/$/)&&(this._path_trailing_slash=!0,t.pop()),this._path=t,t},path_stringify:function(e){return path=(e||this._path).join("/"),this._path_leading_slash&&(path="/"+path),this._path_trailing_slash&&(path+="/"),path},path_to_dir:function(){var e=this._path;return this._path_trailing_slash||(e.pop(),e.push("")),this.path_stringify(e)},path_parts:function(){return this._path},scheme:function(e){return this.gs(e,"_scheme")},port:function(e){return this.gs(e,"_port")},host:function(e){return this.gs(e,"_host")},protocol:function(){return this.scheme.toLowerCase()},authority:function(e){var t,i,o;return void 0!==e?(this._authority=e,(t=e.match(n))&&(e=e.replace(n,""),this.userinfo(t[1])),(i=e.match(r))&&(e=e.replace(r,""),this.port(i[1])),this.host(e),this):(e="",(o=this.userinfo())&&(e=o+"@"),e+=this.host(),(i=this.port())&&(e+=":"+i),e)},stringify:function(){var e=this.query_stringify(),t=this.fragment(),n=this.scheme();return(n?n+"://":"")+this.authority()+this.path_stringify()+(e?"?"+e:"")+(t?"#"+t:"")},query_stringify:function(){for(var e=[],t=this._query[0],n=this._query[1],r=0;r<t.length;r++)e.push(encodeURIComponent(t[r])+"="+encodeURIComponent(n[r]));return e.join("&")},query_get:function(e){for(var t={},n=this._query,r=0;r<n[0].length;r++){var i=n[0][r],o=n[1][r];e&&i!==e||t[i]||(t[i]=o)}return e?t[e]:t},query_get_all:function(e){for(var t={},n=this._query,r=0;r<n[0].length;r++){var i=n[0][r],o=n[1][r];e&&i!==e||(t[i]?t[i].push(o):t[i]=[o])}return e?t[e]:t},_query_parse:function(e){var t=[[],[]],n=e.split(/&|;/);return n.forEach(function(e){var n;(n=e.match(i))&&(n.shift(),n.forEach(function(e,n){t[n].push(decodeURIComponent(e.replace("+"," ","g")))}))}),t},_query_toList:function(e,t,n){for(var r in n)o(n[r])?n[r].forEach(function(n){e.push(r),t.push(n)}):void 0!==n[r]&&null!==n[r]&&(e.push(r),t.push(n[r]));return[e,t]},query_push:function(e){return this._query=this._query_toList(this._query[0],this._query[1],e),this},query_merge:function(e){var t=this._query[0],n=this._query[1];for(var r in e)for(var i=!1,a=0;a<t.length;a++){var s=t[a];if(r===s){if(i){t.splice(a,1),n.splice(a,1);continue}o(e[r])?n[a]=e[r].shift():void 0===e[r]||null===e[r]?(t.splice(a,1),n.splice(a,1),delete e[r]):(n[a]=e[r],delete e[r]),i=!0}}return this.query_push(e),this},query_clear:function(){return this._query=[[],[]],this},query_set:function(){var e=Array.prototype.slice.call(arguments);if(1===e.length)this._query="object"==typeof e[0]?this._query_toList([],[],e[0]):this._query_parse(e[0]);else if(0===e.length)this.query_clear();else{var t={};t[e[0]]=e[1],this.query_merge(t)}return this}},e}),function(e,t,n){"undefined"!=typeof module&&module.exports?module.exports=n():"function"==typeof define&&define.amd?define("lib/bonzo/bonzo",n):t[e]=n()}("bonzo",this,function(){function e(e){return e&&e.nodeName&&(1==e.nodeType||11==e.nodeType)}function t(t,n,r){var i,o,a;if("string"==typeof t)return x.create(t);if(e(t)&&(t=[t]),r){for(a=[],i=0,o=t.length;o>i;i++)a[i]=y(n,t[i]);return a}return t}function n(e){return new RegExp("(^|\\s+)"+e+"(\\s+|$)")}function r(e,t,n,r){for(var i,o=0,a=e.length;a>o;o++)i=r?e.length-o-1:o,t.call(n||e[i],e[i],i,e);return e}function i(t,n,r){for(var o=0,a=t.length;a>o;o++)e(t[o])&&(i(t[o].childNodes,n,r),n.call(r||t[o],t[o],o,t));return t}function o(e){return e.replace(/-(.)/g,function(e,t){return t.toUpperCase()})}function a(e){return e?e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase():e}function s(e){e[H]("data-node-uid")||e[F]("data-node-uid",++I);var t=e[H]("data-node-uid");return R[t]||(R[t]={})}function u(e){var t=e[H]("data-node-uid");t&&delete R[t]}function c(e){var t;try{return null===e||void 0===e?void 0:"true"===e?!0:"false"===e?!1:"null"===e?null:(t=parseFloat(e))==e?t:e}catch(n){}return void 0}function l(e,t,n){for(var r=0,i=e.length;i>r;++r)if(t.call(n||null,e[r],r,e))return!0;return!1}function f(e){return"transform"==e&&(e=X.transform)||/^transform-?[Oo]rigin$/.test(e)&&(e=X.transform+"Origin")||"float"==e&&(e=X.cssFloat),e?o(e):null}function h(e,n,i,o){var a=0,s=n||this,u=[],c=Z&&"string"==typeof e&&"<"!=e.charAt(0)?Z(e):e;return r(t(c),function(e,t){r(s,function(n){i(e,u[a++]=t>0?y(s,n):n)},null,o)},this,o),s.length=a,r(u,function(e){s[--a]=e},null,!o),s}function p(e,t,n){var r=x(e),i=r.css("position"),o=r.offset(),a="relative",s=i==a,u=[parseInt(r.css("left"),10),parseInt(r.css("top"),10)];"static"==i&&(r.css("position",a),i=a),isNaN(u[0])&&(u[0]=s?0:e.offsetLeft),isNaN(u[1])&&(u[1]=s?0:e.offsetTop),null!=t&&(e.style.left=t-o.left+u[0]+U),null!=n&&(e.style.top=n-o.top+u[1]+U)}function d(e,t){return"function"==typeof t?t(e):t}function g(e,t,n){var r=this[0];return r?null==e&&null==t?(v(r)?b():{x:r.scrollLeft,y:r.scrollTop})[n]:(v(r)?S.scrollTo(e,t):(null!=e&&(r.scrollLeft=e),null!=t&&(r.scrollTop=t)),this):this}function m(e){if(this.length=0,e){e="string"==typeof e||e.nodeType||"undefined"==typeof e.length?[e]:e,this.length=e.length;for(var t=0;t<e.length;t++)this[t]=e[t]}}function y(e,t){var n,r,i,o=t.cloneNode(!0);if(e.$&&"function"==typeof e.cloneEvents)for(e.$(o).cloneEvents(t),n=e.$(o).find("*"),r=e.$(t).find("*"),i=0;i<r.length;i++)e.$(n[i]).cloneEvents(r[i]);return o}function v(e){return e===S||/^(?:body|html)$/i.test(e.tagName)}function b(){return{x:S.pageXOffset||T.scrollLeft,y:S.pageYOffset||T.scrollTop}}function w(e){var t=document.createElement("script"),n=e.match(M);return t.src=n[1],t}function x(e){return new m(e)}var q,E,_,S=window,k=S.document,T=k.documentElement,C="parentNode",N=/^(checked|value|selected|disabled)$/i,O=/^(select|fieldset|table|tbody|tfoot|td|tr|colgroup)$/i,M=/\s*<script +src=['"]([^'"]+)['"]>/,A=["<table>","</table>",1],D=["<table><tbody><tr>","</tr></tbody></table>",3],P=["<select>","</select>",1],L=["_","",0,1],$={thead:A,tbody:A,tfoot:A,colgroup:A,caption:A,tr:["<table><tbody>","</tbody></table>",2],th:D,td:D,col:["<table><colgroup>","</colgroup></table>",2],fieldset:["<form>","</form>",1],legend:["<form><fieldset>","</fieldset></form>",2],option:P,optgroup:P,script:L,style:L,link:L,param:L,base:L},j=/^(checked|selected|disabled)$/,B=/msie/i.test(navigator.userAgent),R={},I=0,W=/^-?[\d\.]+$/,z=/^data-(.+)$/,U="px",F="setAttribute",H="getAttribute",Y="getElementsByTagName",X=function(){var e=k.createElement("p");return e.innerHTML='<a href="#x">x</a><table style="float:left;"></table>',{hrefExtended:"#x"!=e[Y]("a")[0][H]("href"),autoTbody:0!==e[Y]("tbody").length,computedStyle:k.defaultView&&k.defaultView.getComputedStyle,cssFloat:e[Y]("table")[0].style.styleFloat?"styleFloat":"cssFloat",transform:function(){var t,n=["transform","webkitTransform","MozTransform","OTransform","msTransform"];for(t=0;t<n.length;t++)if(n[t]in e.style)return n[t]}(),classList:"classList"in e,opasity:function(){return"undefined"!=typeof k.createElement("a").style.opacity}()}}(),Q=/(^\s*|\s*$)/g,G=/\s+/,K=String.prototype.toString,V={lineHeight:1,zoom:1,zIndex:1,opacity:1,boxFlex:1,WebkitBoxFlex:1,MozBoxFlex:1},Z=k.querySelectorAll&&function(e){return k.querySelectorAll(e)},J=String.prototype.trim?function(e){return e.trim()}:function(e){return e.replace(Q,"")},et=X.computedStyle?function(e,t){var n=null,r=k.defaultView.getComputedStyle(e,"");return r&&(n=r[t]),e.style[t]||n}:B&&T.currentStyle?function(e,t){var n,r;if("opacity"==t&&!X.opasity){n=100;try{n=e.filters["DXImageTransform.Microsoft.Alpha"].opacity}catch(i){try{n=e.filters("alpha").opacity}catch(o){}}return n/100}return r=e.currentStyle?e.currentStyle[t]:null,e.style[t]||r}:function(e,t){return e.style[t]};return X.classList?(q=function(e,t){return e.classList.contains(t)},E=function(e,t){e.classList.add(t)},_=function(e,t){e.classList.remove(t)}):(q=function(e,t){return n(t).test(e.className)},E=function(e,t){e.className=J(e.className+" "+t)},_=function(e,t){e.className=J(e.className.replace(n(t)," "))}),m.prototype={get:function(e){return this[e]||null},each:function(e,t){return r(this,e,t)},deepEach:function(e,t){return i(this,e,t)},map:function(e,t){var n,r,i=[];for(r=0;r<this.length;r++)n=e.call(this,this[r],r),t?t(n)&&i.push(n):i.push(n);return i},html:function(e,n){var i=n?void 0===T.textContent?"innerText":"textContent":"innerHTML",o=this,a=function(n,i){r(t(e,o,i),function(e){n.appendChild(e)})},s=function(t,r){try{if(n||"string"==typeof e&&!O.test(t.tagName))return t[i]=e}catch(o){}a(t,r)};return"undefined"!=typeof e?this.empty().each(s):this[0]?this[0][i]:""},text:function(e){return this.html(e,!0)},append:function(e){var n=this;return this.each(function(i,o){r(t(e,n,o),function(e){i.appendChild(e)})})},prepend:function(e){var n=this;return this.each(function(i,o){var a=i.firstChild;r(t(e,n,o),function(e){i.insertBefore(e,a)})})},appendTo:function(e,t){return h.call(this,e,t,function(e,t){e.appendChild(t)})},prependTo:function(e,t){return h.call(this,e,t,function(e,t){e.insertBefore(t,e.firstChild)},1)},before:function(e){var n=this;return this.each(function(i,o){r(t(e,n,o),function(e){i[C].insertBefore(e,i)})})},after:function(e){var n=this;return this.each(function(i,o){r(t(e,n,o),function(e){i[C].insertBefore(e,i.nextSibling)},null,1)})},insertBefore:function(e,t){return h.call(this,e,t,function(e,t){e[C].insertBefore(t,e)})},insertAfter:function(e,t){return h.call(this,e,t,function(e,t){var n=e.nextSibling;n?e[C].insertBefore(t,n):e[C].appendChild(t)},1)},replaceWith:function(e){return x(t(e)).insertAfter(this),this.remove()},clone:function(e){var t,n,r=[];for(n=0,t=this.length;t>n;n++)r[n]=y(e||this,this[n]);return x(r)},addClass:function(e){return e=K.call(e).split(G),this.each(function(t){r(e,function(e){e&&!q(t,d(t,e))&&E(t,d(t,e))})})},removeClass:function(e){return e=K.call(e).split(G),this.each(function(t){r(e,function(e){e&&q(t,d(t,e))&&_(t,d(t,e))})})},hasClass:function(e){return e=K.call(e).split(G),l(this,function(t){return l(e,function(e){return e&&q(t,e)})})},toggleClass:function(e,t){return e=K.call(e).split(G),this.each(function(n){r(e,function(e){e&&("undefined"!=typeof t?t?!q(n,e)&&E(n,e):_(n,e):q(n,e)?_(n,e):E(n,e))})})},show:function(e){return e="string"==typeof e?e:"",this.each(function(t){t.style.display=e})},hide:function(){return this.each(function(e){e.style.display="none"})},toggle:function(e,t){return t="string"==typeof t?t:"","function"!=typeof e&&(e=null),this.each(function(n){n.style.display=n.offsetWidth||n.offsetHeight?"none":t,e&&e.call(n)})},first:function(){return x(this.length?this[0]:[])},last:function(){return x(this.length?this[this.length-1]:[])},next:function(){return this.related("nextSibling")},previous:function(){return this.related("previousSibling")},parent:function(){return this.related(C)},related:function(e){return x(this.map(function(t){for(t=t[e];t&&1!==t.nodeType;)t=t[e];return t||0},function(e){return e}))},focus:function(){return this.length&&this[0].focus(),this},blur:function(){return this.length&&this[0].blur(),this},css:function(e,t){function n(e,t,n){for(var r in i)if(i.hasOwnProperty(r)){n=i[r],(t=f(r))&&W.test(n)&&!(t in V)&&(n+=U);try{e.style[t]=d(e,n)}catch(o){}}}var r,i=e;return void 0===t&&"string"==typeof e?(t=this[0],t?t===k||t===S?(r=t===k?x.doc():x.viewport(),"width"==e?r.width:"height"==e?r.height:""):(e=f(e))?et(t,e):null:null):("string"==typeof e&&(i={},i[e]=t),!X.opasity&&"opacity"in i&&(i.filter=null!=i.opacity&&""!==i.opacity?"alpha(opacity="+100*i.opacity+")":"",i.zoom=e.zoom||1,delete i.opacity),this.each(n))},offset:function(e,t){if(e&&"object"==typeof e&&("number"==typeof e.top||"number"==typeof e.left))return this.each(function(t){p(t,e.left,e.top)});if("number"==typeof e||"number"==typeof t)return this.each(function(n){p(n,e,t)});if(!this[0])return{top:0,left:0,height:0,width:0};var n=this[0],r=n.ownerDocument.documentElement,i=n.getBoundingClientRect(),o=b(),a=n.offsetWidth,s=n.offsetHeight,u=i.top+o.y-Math.max(0,r&&r.clientTop,k.body.clientTop),c=i.left+o.x-Math.max(0,r&&r.clientLeft,k.body.clientLeft);return{top:u,left:c,height:s,width:a}},dim:function(){if(!this.length)return{height:0,width:0};var e=this[0],t=9==e.nodeType&&e.documentElement,n=t||!e.style||e.offsetWidth||e.offsetHeight?null:function(t){var n={position:e.style.position||"",visibility:e.style.visibility||"",display:e.style.display||""};return t.first().css({position:"absolute",visibility:"hidden",display:"block"}),n}(this),r=t?Math.max(e.body.scrollWidth,e.body.offsetWidth,t.scrollWidth,t.offsetWidth,t.clientWidth):e.offsetWidth,i=t?Math.max(e.body.scrollHeight,e.body.offsetHeight,t.scrollHeight,t.offsetHeight,t.clientHeight):e.offsetHeight;return n&&this.first().css(n),{height:i,width:r}},attr:function(e,t){var n,r=this[0];if("string"!=typeof e&&!(e instanceof String)){for(n in e)e.hasOwnProperty(n)&&this.attr(n,e[n]);return this}return"undefined"==typeof t?r?N.test(e)?j.test(e)&&"string"==typeof r[e]?!0:r[e]:"href"!=e&&"src"!=e||!X.hrefExtended?r[H](e):r[H](e,2):null:this.each(function(n){N.test(e)?n[e]=d(n,t):n[F](e,d(n,t))})},removeAttr:function(e){return this.each(function(t){j.test(e)?t[e]=!1:t.removeAttribute(e)})},val:function(e){return"string"==typeof e||"number"==typeof e?this.attr("value",e):this.length?this[0].value:null},data:function(e,t){var n,i,u=this[0];return"undefined"==typeof t?u?(n=s(u),"undefined"==typeof e?(r(u.attributes,function(e){(i=(""+e.name).match(z))&&(n[o(i[1])]=c(e.value))}),n):("undefined"==typeof n[e]&&(n[e]=c(this.attr("data-"+a(e)))),n[e])):null:this.each(function(n){s(n)[e]=t})},remove:function(){return this.deepEach(u),this.detach()},empty:function(){return this.each(function(e){for(i(e.childNodes,u);e.firstChild;)e.removeChild(e.firstChild)})},detach:function(){return this.each(function(e){e[C]&&e[C].removeChild(e)})},scrollTop:function(e){return g.call(this,null,e,"y")},scrollLeft:function(e){return g.call(this,e,null,"x")}},x.setQueryEngine=function(e){Z=e,delete x.setQueryEngine},x.aug=function(e,t){for(var n in e)e.hasOwnProperty(n)&&((t||m.prototype)[n]=e[n])},x.create=function(t){return"string"==typeof t&&""!==t?function(){if(M.test(t))return[w(t)];var e=t.match(/^\s*<([^\s>]+)/),n=k.createElement("div"),i=[],o=e?$[e[1].toLowerCase()]:null,a=o?o[2]+1:1,s=o&&o[3],u=C,c=X.autoTbody&&o&&"<table>"==o[0]&&!/<tbody/i.test(t);
+!function(e,t){e._sqwidget=t()}(this,function(){var requirejs,require,define;return function(global){function isFunction(e){return"[object Function]"===ostring.call(e)}function isArray(e){return"[object Array]"===ostring.call(e)}function each(e,t){if(e){var n;for(n=0;n<e.length&&(!e[n]||!t(e[n],n,e));n+=1);}}function eachReverse(e,t){if(e){var n;for(n=e.length-1;n>-1&&(!e[n]||!t(e[n],n,e));n-=1);}}function hasProp(e,t){return hasOwn.call(e,t)}function getOwn(e,t){return hasProp(e,t)&&e[t]}function eachProp(e,t){var n;for(n in e)if(hasProp(e,n)&&t(e[n],n))break}function mixin(e,t,n,r){return t&&eachProp(t,function(t,i){(n||!hasProp(e,i))&&(r&&"string"!=typeof t?(e[i]||(e[i]={}),mixin(e[i],t,n,r)):e[i]=t)}),e}function bind(e,t){return function(){return t.apply(e,arguments)}}function scripts(){return document.getElementsByTagName("script")}function defaultOnError(e){throw e}function getGlobal(e){if(!e)return e;var t=global;return each(e.split("."),function(e){t=t[e]}),t}function makeError(e,t,n,r){var i=new Error(t+"\nhttp://requirejs.org/docs/errors.html#"+e);return i.requireType=e,i.requireModules=r,n&&(i.originalError=n),i}function newContext(e){function t(e){var t,n;for(t=0;e[t];t+=1)if(n=e[t],"."===n)e.splice(t,1),t-=1;else if(".."===n){if(1===t&&(".."===e[2]||".."===e[0]))break;t>0&&(e.splice(t-1,2),t-=2)}}function n(e,n,r){var i,o,a,s,u,c,l,f,h,p,d,g=n&&n.split("/"),m=g,y=E.map,v=y&&y["*"];if(e&&"."===e.charAt(0)&&(n?(m=getOwn(E.pkgs,n)?g=[n]:g.slice(0,g.length-1),e=m.concat(e.split("/")),t(e),o=getOwn(E.pkgs,i=e[0]),e=e.join("/"),o&&e===i+"/"+o.main&&(e=i)):0===e.indexOf("./")&&(e=e.substring(2))),r&&y&&(g||v)){for(s=e.split("/"),u=s.length;u>0;u-=1){if(l=s.slice(0,u).join("/"),g)for(c=g.length;c>0;c-=1)if(a=getOwn(y,g.slice(0,c).join("/")),a&&(a=getOwn(a,l))){f=a,h=u;break}if(f)break;!p&&v&&getOwn(v,l)&&(p=getOwn(v,l),d=u)}!f&&p&&(f=p,h=d),f&&(s.splice(0,h,f),e=s.join("/"))}return e}function r(e){isBrowser&&each(scripts(),function(t){return t.getAttribute("data-requiremodule")===e&&t.getAttribute("data-requirecontext")===w.contextName?(t.parentNode.removeChild(t),!0):void 0})}function i(e){var t=getOwn(E.paths,e);return t&&isArray(t)&&t.length>1?(t.shift(),w.require.undef(e),w.require([e]),!0):void 0}function o(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function a(e,t,r,i){var a,s,u,c,l=null,f=t?t.name:null,h=e,p=!0,d="";return e||(p=!1,e="_@r"+(O+=1)),c=o(e),l=c[0],e=c[1],l&&(l=n(l,f,i),s=getOwn(C,l)),e&&(l?d=s&&s.normalize?s.normalize(e,function(e){return n(e,f,i)}):n(e,f,i):(d=n(e,f,i),c=o(d),l=c[0],d=c[1],r=!0,a=w.nameToUrl(d))),u=!l||s||r?"":"_unnormalized"+(M+=1),{prefix:l,name:d,parentMap:t,unnormalized:!!u,url:a,originalName:h,isDefine:p,id:(l?l+"!"+d:d)+u}}function s(e){var t=e.id,n=getOwn(_,t);return n||(n=_[t]=new w.Module(e)),n}function u(e,t,n){var r=e.id,i=getOwn(_,r);!hasProp(C,r)||i&&!i.defineEmitComplete?(i=s(e),i.error&&"error"===t?n(i.error):i.on(t,n)):"defined"===t&&n(C[r])}function c(e,t){var n=e.requireModules,r=!1;t?t(e):(each(n,function(t){var n=getOwn(_,t);n&&(n.error=e,n.events.error&&(r=!0,n.emit("error",e)))}),r||req.onError(e))}function l(){globalDefQueue.length&&(apsp.apply(T,[T.length-1,0].concat(globalDefQueue)),globalDefQueue=[])}function f(e){delete _[e],delete S[e]}function h(e,t,n){var r=e.map.id;e.error?e.emit("error",e.error):(t[r]=!0,each(e.depMaps,function(r,i){var o=r.id,a=getOwn(_,o);!a||e.depMatched[i]||n[o]||(getOwn(t,o)?(e.defineDep(i,C[o]),e.check()):h(a,t,n))}),n[r]=!0)}function p(){var e,t,n,o,a=1e3*E.waitSeconds,s=a&&w.startTime+a<(new Date).getTime(),u=[],l=[],f=!1,d=!0;if(!v){if(v=!0,eachProp(S,function(n){if(e=n.map,t=e.id,n.enabled&&(e.isDefine||l.push(n),!n.error))if(!n.inited&&s)i(t)?(o=!0,f=!0):(u.push(t),r(t));else if(!n.inited&&n.fetched&&e.isDefine&&(f=!0,!e.prefix))return d=!1}),s&&u.length)return n=makeError("timeout","Load timeout for modules: "+u,null,u),n.contextName=w.contextName,c(n);d&&each(l,function(e){h(e,{},{})}),s&&!o||!f||!isBrowser&&!isWebWorker||q||(q=setTimeout(function(){q=0,p()},50)),v=!1}}function d(e){hasProp(C,e[0])||s(a(e[0],null,!0)).init(e[1],e[2])}function g(e,t,n,r){e.detachEvent&&!isOpera?r&&e.detachEvent(r,t):e.removeEventListener(n,t,!1)}function m(e){var t=e.currentTarget||e.srcElement;return g(t,w.onScriptLoad,"load","onreadystatechange"),g(t,w.onScriptError,"error"),{node:t,id:t&&t.getAttribute("data-requiremodule")}}function y(){var e;for(l();T.length;){if(e=T.shift(),null===e[0])return c(makeError("mismatch","Mismatched anonymous define() module: "+e[e.length-1]));d(e)}}var v,b,w,x,q,E={waitSeconds:7,baseUrl:"./",paths:{},pkgs:{},shim:{},config:{}},_={},S={},k={},T=[],C={},N={},O=1,M=1;return x={require:function(e){return e.require?e.require:e.require=w.makeRequire(e.map)},exports:function(e){return e.usingExports=!0,e.map.isDefine?e.exports?e.exports:e.exports=C[e.map.id]={}:void 0},module:function(e){return e.module?e.module:e.module={id:e.map.id,uri:e.map.url,config:function(){var t,n=getOwn(E.pkgs,e.map.id);return t=n?getOwn(E.config,e.map.id+"/"+n.main):getOwn(E.config,e.map.id),t||{}},exports:C[e.map.id]}}},b=function(e){this.events=getOwn(k,e.id)||{},this.map=e,this.shim=getOwn(E.shim,e.id),this.depExports=[],this.depMaps=[],this.depMatched=[],this.pluginMaps={},this.depCount=0},b.prototype={init:function(e,t,n,r){r=r||{},this.inited||(this.factory=t,n?this.on("error",n):this.events.error&&(n=bind(this,function(e){this.emit("error",e)})),this.depMaps=e&&e.slice(0),this.errback=n,this.inited=!0,this.ignore=r.ignore,r.enabled||this.enabled?this.enable():this.check())},defineDep:function(e,t){this.depMatched[e]||(this.depMatched[e]=!0,this.depCount-=1,this.depExports[e]=t)},fetch:function(){if(!this.fetched){this.fetched=!0,w.startTime=(new Date).getTime();var e=this.map;return this.shim?(w.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],bind(this,function(){return e.prefix?this.callPlugin():this.load()})),void 0):e.prefix?this.callPlugin():this.load()}},load:function(){var e=this.map.url;N[e]||(N[e]=!0,w.load(this.map.id,e))},check:function(){if(this.enabled&&!this.enabling){var e,t,n=this.map.id,r=this.depExports,i=this.exports,o=this.factory;if(this.inited){if(this.error)this.emit("error",this.error);else if(!this.defining){if(this.defining=!0,this.depCount<1&&!this.defined){if(isFunction(o)){if(this.events.error&&this.map.isDefine||req.onError!==defaultOnError)try{i=w.execCb(n,o,r,i)}catch(a){e=a}else i=w.execCb(n,o,r,i);if(this.map.isDefine&&(t=this.module,t&&void 0!==t.exports&&t.exports!==this.exports?i=t.exports:void 0===i&&this.usingExports&&(i=this.exports)),e)return e.requireMap=this.map,e.requireModules=this.map.isDefine?[this.map.id]:null,e.requireType=this.map.isDefine?"define":"require",c(this.error=e)}else i=o;this.exports=i,this.map.isDefine&&!this.ignore&&(C[n]=i,req.onResourceLoad&&req.onResourceLoad(w,this.map,this.depMaps)),f(n),this.defined=!0}this.defining=!1,this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0)}}else this.fetch()}},callPlugin:function(){var e=this.map,t=e.id,r=a(e.prefix);this.depMaps.push(r),u(r,"defined",bind(this,function(r){var i,o,l,h=this.map.name,p=this.map.parentMap?this.map.parentMap.name:null,d=w.makeRequire(e.parentMap,{enableBuildCallback:!0});return this.map.unnormalized?(r.normalize&&(h=r.normalize(h,function(e){return n(e,p,!0)})||""),o=a(e.prefix+"!"+h,this.map.parentMap),u(o,"defined",bind(this,function(e){this.init([],function(){return e},null,{enabled:!0,ignore:!0})})),l=getOwn(_,o.id),l&&(this.depMaps.push(o),this.events.error&&l.on("error",bind(this,function(e){this.emit("error",e)})),l.enable()),void 0):(i=bind(this,function(e){this.init([],function(){return e},null,{enabled:!0})}),i.error=bind(this,function(e){this.inited=!0,this.error=e,e.requireModules=[t],eachProp(_,function(e){0===e.map.id.indexOf(t+"_unnormalized")&&f(e.map.id)}),c(e)}),i.fromText=bind(this,function(n,r){var o=e.name,u=a(o),l=useInteractive;r&&(n=r),l&&(useInteractive=!1),s(u),hasProp(E.config,t)&&(E.config[o]=E.config[t]);try{req.exec(n)}catch(f){return c(makeError("fromtexteval","fromText eval for "+t+" failed: "+f,f,[t]))}l&&(useInteractive=!0),this.depMaps.push(u),w.completeLoad(o),d([o],i)}),r.load(e.name,d,i,E),void 0)})),w.enable(r,this),this.pluginMaps[r.id]=r},enable:function(){S[this.map.id]=this,this.enabled=!0,this.enabling=!0,each(this.depMaps,bind(this,function(e,t){var n,r,i;if("string"==typeof e){if(e=a(e,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap),this.depMaps[t]=e,i=getOwn(x,e.id))return this.depExports[t]=i(this),void 0;this.depCount+=1,u(e,"defined",bind(this,function(e){this.defineDep(t,e),this.check()})),this.errback&&u(e,"error",bind(this,this.errback))}n=e.id,r=_[n],hasProp(x,n)||!r||r.enabled||w.enable(e,this)})),eachProp(this.pluginMaps,bind(this,function(e){var t=getOwn(_,e.id);t&&!t.enabled&&w.enable(e,this)})),this.enabling=!1,this.check()},on:function(e,t){var n=this.events[e];n||(n=this.events[e]=[]),n.push(t)},emit:function(e,t){each(this.events[e],function(e){e(t)}),"error"===e&&delete this.events[e]}},w={config:E,contextName:e,registry:_,defined:C,urlFetched:N,defQueue:T,Module:b,makeModuleMap:a,nextTick:req.nextTick,onError:c,configure:function(e){e.baseUrl&&"/"!==e.baseUrl.charAt(e.baseUrl.length-1)&&(e.baseUrl+="/");var t=E.pkgs,n=E.shim,r={paths:!0,config:!0,map:!0};eachProp(e,function(e,t){r[t]?"map"===t?(E.map||(E.map={}),mixin(E[t],e,!0,!0)):mixin(E[t],e,!0):E[t]=e}),e.shim&&(eachProp(e.shim,function(e,t){isArray(e)&&(e={deps:e}),!e.exports&&!e.init||e.exportsFn||(e.exportsFn=w.makeShimExports(e)),n[t]=e}),E.shim=n),e.packages&&(each(e.packages,function(e){var n;e="string"==typeof e?{name:e}:e,n=e.location,t[e.name]={name:e.name,location:n||e.name,main:(e.main||"main").replace(currDirRegExp,"").replace(jsSuffixRegExp,"")}}),E.pkgs=t),eachProp(_,function(e,t){e.inited||e.map.unnormalized||(e.map=a(t))}),(e.deps||e.callback)&&w.require(e.deps||[],e.callback)},makeShimExports:function(e){function t(){var t;return e.init&&(t=e.init.apply(global,arguments)),t||e.exports&&getGlobal(e.exports)}return t},makeRequire:function(t,i){function o(n,r,u){var l,f,h;return i.enableBuildCallback&&r&&isFunction(r)&&(r.__requireJsBuild=!0),"string"==typeof n?isFunction(r)?c(makeError("requireargs","Invalid require call"),u):t&&hasProp(x,n)?x[n](_[t.id]):req.get?req.get(w,n,t,o):(f=a(n,t,!1,!0),l=f.id,hasProp(C,l)?C[l]:c(makeError("notloaded",'Module name "'+l+'" has not been loaded yet for context: '+e+(t?"":". Use require([])")))):(y(),w.nextTick(function(){y(),h=s(a(null,t)),h.skipMap=i.skipMap,h.init(n,r,u,{enabled:!0}),p()}),o)}return i=i||{},mixin(o,{isBrowser:isBrowser,toUrl:function(e){var r,i=e.lastIndexOf("."),o=e.split("/")[0],a="."===o||".."===o;return-1!==i&&(!a||i>1)&&(r=e.substring(i,e.length),e=e.substring(0,i)),w.nameToUrl(n(e,t&&t.id,!0),r,!0)},defined:function(e){return hasProp(C,a(e,t,!1,!0).id)},specified:function(e){return e=a(e,t,!1,!0).id,hasProp(C,e)||hasProp(_,e)}}),t||(o.undef=function(e){l();var n=a(e,t,!0),i=getOwn(_,e);r(e),delete C[e],delete N[n.url],delete k[e],i&&(i.events.defined&&(k[e]=i.events),f(e))}),o},enable:function(e){var t=getOwn(_,e.id);t&&s(e).enable()},completeLoad:function(e){var t,n,r,o=getOwn(E.shim,e)||{},a=o.exports;for(l();T.length;){if(n=T.shift(),null===n[0]){if(n[0]=e,t)break;t=!0}else n[0]===e&&(t=!0);d(n)}if(r=getOwn(_,e),!t&&!hasProp(C,e)&&r&&!r.inited){if(!(!E.enforceDefine||a&&getGlobal(a)))return i(e)?void 0:c(makeError("nodefine","No define call for "+e,null,[e]));d([e,o.deps||[],o.exportsFn])}p()},nameToUrl:function(e,t,n){var r,i,o,a,s,u,c,l,f;if(req.jsExtRegExp.test(e))l=e+(t||"");else{for(r=E.paths,i=E.pkgs,s=e.split("/"),u=s.length;u>0;u-=1){if(c=s.slice(0,u).join("/"),o=getOwn(i,c),f=getOwn(r,c)){isArray(f)&&(f=f[0]),s.splice(0,u,f);break}if(o){a=e===o.name?o.location+"/"+o.main:o.location,s.splice(0,u,a);break}}l=s.join("/"),l+=t||(/^data\:|\?/.test(l)||n?"":".js"),l=("/"===l.charAt(0)||l.match(/^[\w\+\.\-]+:/)?"":E.baseUrl)+l}return E.urlArgs?l+((-1===l.indexOf("?")?"?":"&")+E.urlArgs):l},load:function(e,t){req.load(w,e,t)},execCb:function(e,t,n,r){return t.apply(r,n)},onScriptLoad:function(e){if("load"===e.type||readyRegExp.test((e.currentTarget||e.srcElement).readyState)){interactiveScript=null;var t=m(e);w.completeLoad(t.id)}},onScriptError:function(e){var t=m(e);return i(t.id)?void 0:c(makeError("scripterror","Script error for: "+t.id,e,[t.id]))}},w.require=w.makeRequire(),w}function getInteractiveScript(){return interactiveScript&&"interactive"===interactiveScript.readyState?interactiveScript:(eachReverse(scripts(),function(e){return"interactive"===e.readyState?interactiveScript=e:void 0}),interactiveScript)}var req,s,head,baseElement,dataMain,src,interactiveScript,currentlyAddingScript,mainScript,subPath,version="2.1.9",commentRegExp=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,cjsRequireRegExp=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,jsSuffixRegExp=/\.js$/,currDirRegExp=/^\.\//,op=Object.prototype,ostring=op.toString,hasOwn=op.hasOwnProperty,ap=Array.prototype,apsp=ap.splice,isBrowser=!("undefined"==typeof window||"undefined"==typeof navigator||!window.document),isWebWorker=!isBrowser&&"undefined"!=typeof importScripts,readyRegExp=isBrowser&&"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,defContextName="_",isOpera="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),contexts={},cfg={},globalDefQueue=[],useInteractive=!1;if("undefined"==typeof define){if("undefined"!=typeof requirejs){if(isFunction(requirejs))return;cfg=requirejs,requirejs=void 0}"undefined"==typeof require||isFunction(require)||(cfg=require,require=void 0),req=requirejs=function(e,t,n,r){var i,o,a=defContextName;return isArray(e)||"string"==typeof e||(o=e,isArray(t)?(e=t,t=n,n=r):e=[]),o&&o.context&&(a=o.context),i=getOwn(contexts,a),i||(i=contexts[a]=req.s.newContext(a)),o&&i.configure(o),i.require(e,t,n)},req.config=function(e){return req(e)},req.nextTick="undefined"!=typeof setTimeout?function(e){setTimeout(e,4)}:function(e){e()},require||(require=req),req.version=version,req.jsExtRegExp=/^\/|:|\?|\.js$/,req.isBrowser=isBrowser,s=req.s={contexts:contexts,newContext:newContext},req({}),each(["toUrl","undef","defined","specified"],function(e){req[e]=function(){var t=contexts[defContextName];return t.require[e].apply(t,arguments)}}),isBrowser&&(head=s.head=document.getElementsByTagName("head")[0],baseElement=document.getElementsByTagName("base")[0],baseElement&&(head=s.head=baseElement.parentNode)),req.onError=defaultOnError,req.createNode=function(e){var t=e.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script");return t.type=e.scriptType||"text/javascript",t.charset="utf-8",t.async=!0,t},req.load=function(e,t,n){var r,i=e&&e.config||{};if(isBrowser)return r=req.createNode(i,t,n),r.setAttribute("data-requirecontext",e.contextName),r.setAttribute("data-requiremodule",t),!r.attachEvent||r.attachEvent.toString&&r.attachEvent.toString().indexOf("[native code")<0||isOpera?(r.addEventListener("load",e.onScriptLoad,!1),r.addEventListener("error",e.onScriptError,!1)):(useInteractive=!0,r.attachEvent("onreadystatechange",e.onScriptLoad)),r.src=n,currentlyAddingScript=r,baseElement?head.insertBefore(r,baseElement):head.appendChild(r),currentlyAddingScript=null,r;if(isWebWorker)try{importScripts(n),e.completeLoad(t)}catch(o){e.onError(makeError("importscripts","importScripts failed for "+t+" at "+n,o,[t]))}},isBrowser&&!cfg.skipDataMain&&eachReverse(scripts(),function(e){return head||(head=e.parentNode),dataMain=e.getAttribute("data-main"),dataMain?(mainScript=dataMain,cfg.baseUrl||(src=mainScript.split("/"),mainScript=src.pop(),subPath=src.length?src.join("/")+"/":"./",cfg.baseUrl=subPath),mainScript=mainScript.replace(jsSuffixRegExp,""),req.jsExtRegExp.test(mainScript)&&(mainScript=dataMain),cfg.deps=cfg.deps?cfg.deps.concat(mainScript):[mainScript],!0):void 0}),define=function(e,t,n){var r,i;"string"!=typeof e&&(n=t,t=e,e=null),isArray(t)||(n=t,t=null),!t&&isFunction(n)&&(t=[],n.length&&(n.toString().replace(commentRegExp,"").replace(cjsRequireRegExp,function(e,n){t.push(n)}),t=(1===n.length?["require"]:["require","exports","module"]).concat(t))),useInteractive&&(r=currentlyAddingScript||getInteractiveScript(),r&&(e||(e=r.getAttribute("data-requiremodule")),i=contexts[r.getAttribute("data-requirecontext")])),(i?i.defQueue:globalDefQueue).push([e,t,n])},define.amd={jQuery:!0},req.exec=function(text){return eval(text)},req(cfg)}}(this),define("requirejs",function(){}),function(e,t){"function"==typeof define&&define.amd?define("lib/youarei/src/youarei",t):"object"==typeof exports?module.exports=t():e.YouAreI=t()}(this,function(){function e(e){return this.parse(e)}var t=/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,n=/^([^\@]+)\@/,r=/:(\d+)$/,i=/^([^=]+)(?:=(.*))?$/,o=function(e){return"[object Array]"===Object.prototype.toString.call(e)};return e.prototype={parse:function(e){var n=e?e.match(t):[];return this.scheme(n[2]||"").authority(n[4]||"").path_set(n[5]||"").fragment(n[9]||"").query_set(n[7]||"")},clone:function(){var e=this.constructor();for(var t in this)e[t]=this[t];return e},gs:function(e,t,n){return void 0!==e?(this[t]=e,this):n?n(this[t]):this[t]},fragment:function(e){return this.gs(e,"_fragment")},userinfo:function(e){return this.gs(e,"_userinfo",function(e){return void 0===e?e:encodeURI(e)})},path_set:function(e){return this._path_parse(e),this},path_basename_set:function(e){return this._path_trailing_slash?(this._path.push(e),this._path_trailing_slash=!1):this._path[this._path.length-1]=e,this},_path_parse:function(e){e=decodeURIComponent(e||"");var t=e.split("/");return e.match(/^\//)&&(this._path_leading_slash=!0,t.shift()),e.match(/\/$/)&&(this._path_trailing_slash=!0,t.pop()),this._path=t,t},path_stringify:function(e){return path=(e||this._path).join("/"),this._path_leading_slash&&(path="/"+path),this._path_trailing_slash&&(path+="/"),path},path_to_dir:function(){var e=this._path;return this._path_trailing_slash||(e.pop(),e.push("")),this.path_stringify(e)},path_parts:function(){return this._path},scheme:function(e){return this.gs(e,"_scheme")},port:function(e){return this.gs(e,"_port")},host:function(e){return this.gs(e,"_host")},protocol:function(){return this.scheme.toLowerCase()},authority:function(e){var t,i,o;return void 0!==e?(this._authority=e,(t=e.match(n))&&(e=e.replace(n,""),this.userinfo(t[1])),(i=e.match(r))&&(e=e.replace(r,""),this.port(i[1])),this.host(e),this):(e="",(o=this.userinfo())&&(e=o+"@"),e+=this.host(),(i=this.port())&&(e+=":"+i),e)},stringify:function(){var e=this.query_stringify(),t=this.fragment(),n=this.scheme();return(n?n+"://":"")+this.authority()+this.path_stringify()+(e?"?"+e:"")+(t?"#"+t:"")},query_stringify:function(){for(var e=[],t=this._query[0],n=this._query[1],r=0;r<t.length;r++)e.push(encodeURIComponent(t[r])+"="+encodeURIComponent(n[r]));return e.join("&")},query_get:function(e){for(var t={},n=this._query,r=0;r<n[0].length;r++){var i=n[0][r],o=n[1][r];e&&i!==e||t[i]||(t[i]=o)}return e?t[e]:t},query_get_all:function(e){for(var t={},n=this._query,r=0;r<n[0].length;r++){var i=n[0][r],o=n[1][r];e&&i!==e||(t[i]?t[i].push(o):t[i]=[o])}return e?t[e]:t},_query_parse:function(e){var t=[[],[]],n=e.split(/&|;/);return n.forEach(function(e){var n;(n=e.match(i))&&(n.shift(),n.forEach(function(e,n){t[n].push(decodeURIComponent(e.replace("+"," ","g")))}))}),t},_query_toList:function(e,t,n){for(var r in n)o(n[r])?n[r].forEach(function(n){e.push(r),t.push(n)}):void 0!==n[r]&&null!==n[r]&&(e.push(r),t.push(n[r]));return[e,t]},query_push:function(e){return this._query=this._query_toList(this._query[0],this._query[1],e),this},query_merge:function(e){var t=this._query[0],n=this._query[1];for(var r in e)for(var i=!1,a=0;a<t.length;a++){var s=t[a];if(r===s){if(i){t.splice(a,1),n.splice(a,1);continue}o(e[r])?n[a]=e[r].shift():void 0===e[r]||null===e[r]?(t.splice(a,1),n.splice(a,1),delete e[r]):(n[a]=e[r],delete e[r]),i=!0}}return this.query_push(e),this},query_clear:function(){return this._query=[[],[]],this},query_set:function(){var e=Array.prototype.slice.call(arguments);if(1===e.length)this._query="object"==typeof e[0]?this._query_toList([],[],e[0]):this._query_parse(e[0]);else if(0===e.length)this.query_clear();else{var t={};t[e[0]]=e[1],this.query_merge(t)}return this}},e}),function(e,t,n){"undefined"!=typeof module&&module.exports?module.exports=n():"function"==typeof define&&define.amd?define("lib/bonzo/bonzo",n):t[e]=n()}("bonzo",this,function(){function e(e){return e&&e.nodeName&&(1==e.nodeType||11==e.nodeType)}function t(t,n,r){var i,o,a;if("string"==typeof t)return x.create(t);if(e(t)&&(t=[t]),r){for(a=[],i=0,o=t.length;o>i;i++)a[i]=y(n,t[i]);return a}return t}function n(e){return new RegExp("(^|\\s+)"+e+"(\\s+|$)")}function r(e,t,n,r){for(var i,o=0,a=e.length;a>o;o++)i=r?e.length-o-1:o,t.call(n||e[i],e[i],i,e);return e}function i(t,n,r){for(var o=0,a=t.length;a>o;o++)e(t[o])&&(i(t[o].childNodes,n,r),n.call(r||t[o],t[o],o,t));return t}function o(e){return e.replace(/-(.)/g,function(e,t){return t.toUpperCase()})}function a(e){return e?e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase():e}function s(e){e[H]("data-node-uid")||e[F]("data-node-uid",++I);var t=e[H]("data-node-uid");return R[t]||(R[t]={})}function u(e){var t=e[H]("data-node-uid");t&&delete R[t]}function c(e){var t;try{return null===e||void 0===e?void 0:"true"===e?!0:"false"===e?!1:"null"===e?null:(t=parseFloat(e))==e?t:e}catch(n){}return void 0}function l(e,t,n){for(var r=0,i=e.length;i>r;++r)if(t.call(n||null,e[r],r,e))return!0;return!1}function f(e){return"transform"==e&&(e=X.transform)||/^transform-?[Oo]rigin$/.test(e)&&(e=X.transform+"Origin")||"float"==e&&(e=X.cssFloat),e?o(e):null}function h(e,n,i,o){var a=0,s=n||this,u=[],c=Z&&"string"==typeof e&&"<"!=e.charAt(0)?Z(e):e;return r(t(c),function(e,t){r(s,function(n){i(e,u[a++]=t>0?y(s,n):n)},null,o)},this,o),s.length=a,r(u,function(e){s[--a]=e},null,!o),s}function p(e,t,n){var r=x(e),i=r.css("position"),o=r.offset(),a="relative",s=i==a,u=[parseInt(r.css("left"),10),parseInt(r.css("top"),10)];"static"==i&&(r.css("position",a),i=a),isNaN(u[0])&&(u[0]=s?0:e.offsetLeft),isNaN(u[1])&&(u[1]=s?0:e.offsetTop),null!=t&&(e.style.left=t-o.left+u[0]+U),null!=n&&(e.style.top=n-o.top+u[1]+U)}function d(e,t){return"function"==typeof t?t(e):t}function g(e,t,n){var r=this[0];return r?null==e&&null==t?(v(r)?b():{x:r.scrollLeft,y:r.scrollTop})[n]:(v(r)?S.scrollTo(e,t):(null!=e&&(r.scrollLeft=e),null!=t&&(r.scrollTop=t)),this):this}function m(e){if(this.length=0,e){e="string"==typeof e||e.nodeType||"undefined"==typeof e.length?[e]:e,this.length=e.length;for(var t=0;t<e.length;t++)this[t]=e[t]}}function y(e,t){var n,r,i,o=t.cloneNode(!0);if(e.$&&"function"==typeof e.cloneEvents)for(e.$(o).cloneEvents(t),n=e.$(o).find("*"),r=e.$(t).find("*"),i=0;i<r.length;i++)e.$(n[i]).cloneEvents(r[i]);return o}function v(e){return e===S||/^(?:body|html)$/i.test(e.tagName)}function b(){return{x:S.pageXOffset||T.scrollLeft,y:S.pageYOffset||T.scrollTop}}function w(e){var t=document.createElement("script"),n=e.match(M);return t.src=n[1],t}function x(e){return new m(e)}var q,E,_,S=window,k=S.document,T=k.documentElement,C="parentNode",N=/^(checked|value|selected|disabled)$/i,O=/^(select|fieldset|table|tbody|tfoot|td|tr|colgroup)$/i,M=/\s*<script +src=['"]([^'"]+)['"]>/,A=["<table>","</table>",1],D=["<table><tbody><tr>","</tr></tbody></table>",3],P=["<select>","</select>",1],L=["_","",0,1],$={thead:A,tbody:A,tfoot:A,colgroup:A,caption:A,tr:["<table><tbody>","</tbody></table>",2],th:D,td:D,col:["<table><colgroup>","</colgroup></table>",2],fieldset:["<form>","</form>",1],legend:["<form><fieldset>","</fieldset></form>",2],option:P,optgroup:P,script:L,style:L,link:L,param:L,base:L},j=/^(checked|selected|disabled)$/,B=/msie/i.test(navigator.userAgent),R={},I=0,W=/^-?[\d\.]+$/,z=/^data-(.+)$/,U="px",F="setAttribute",H="getAttribute",Y="getElementsByTagName",X=function(){var e=k.createElement("p");return e.innerHTML='<a href="#x">x</a><table style="float:left;"></table>',{hrefExtended:"#x"!=e[Y]("a")[0][H]("href"),autoTbody:0!==e[Y]("tbody").length,computedStyle:k.defaultView&&k.defaultView.getComputedStyle,cssFloat:e[Y]("table")[0].style.styleFloat?"styleFloat":"cssFloat",transform:function(){var t,n=["transform","webkitTransform","MozTransform","OTransform","msTransform"];for(t=0;t<n.length;t++)if(n[t]in e.style)return n[t]}(),classList:"classList"in e,opasity:function(){return"undefined"!=typeof k.createElement("a").style.opacity}()}}(),Q=/(^\s*|\s*$)/g,G=/\s+/,K=String.prototype.toString,V={lineHeight:1,zoom:1,zIndex:1,opacity:1,boxFlex:1,WebkitBoxFlex:1,MozBoxFlex:1},Z=k.querySelectorAll&&function(e){return k.querySelectorAll(e)},J=String.prototype.trim?function(e){return e.trim()}:function(e){return e.replace(Q,"")},et=X.computedStyle?function(e,t){var n=null,r=k.defaultView.getComputedStyle(e,"");return r&&(n=r[t]),e.style[t]||n}:B&&T.currentStyle?function(e,t){var n,r;if("opacity"==t&&!X.opasity){n=100;try{n=e.filters["DXImageTransform.Microsoft.Alpha"].opacity}catch(i){try{n=e.filters("alpha").opacity}catch(o){}}return n/100}return r=e.currentStyle?e.currentStyle[t]:null,e.style[t]||r}:function(e,t){return e.style[t]};return X.classList?(q=function(e,t){return e.classList.contains(t)},E=function(e,t){e.classList.add(t)},_=function(e,t){e.classList.remove(t)}):(q=function(e,t){return n(t).test(e.className)},E=function(e,t){e.className=J(e.className+" "+t)},_=function(e,t){e.className=J(e.className.replace(n(t)," "))}),m.prototype={get:function(e){return this[e]||null},each:function(e,t){return r(this,e,t)},deepEach:function(e,t){return i(this,e,t)},map:function(e,t){var n,r,i=[];for(r=0;r<this.length;r++)n=e.call(this,this[r],r),t?t(n)&&i.push(n):i.push(n);return i},html:function(e,n){var i=n?void 0===T.textContent?"innerText":"textContent":"innerHTML",o=this,a=function(n,i){r(t(e,o,i),function(e){n.appendChild(e)})},s=function(t,r){try{if(n||"string"==typeof e&&!O.test(t.tagName))return t[i]=e}catch(o){}a(t,r)};return"undefined"!=typeof e?this.empty().each(s):this[0]?this[0][i]:""},text:function(e){return this.html(e,!0)},append:function(e){var n=this;return this.each(function(i,o){r(t(e,n,o),function(e){i.appendChild(e)})})},prepend:function(e){var n=this;return this.each(function(i,o){var a=i.firstChild;r(t(e,n,o),function(e){i.insertBefore(e,a)})})},appendTo:function(e,t){return h.call(this,e,t,function(e,t){e.appendChild(t)})},prependTo:function(e,t){return h.call(this,e,t,function(e,t){e.insertBefore(t,e.firstChild)},1)},before:function(e){var n=this;return this.each(function(i,o){r(t(e,n,o),function(e){i[C].insertBefore(e,i)})})},after:function(e){var n=this;return this.each(function(i,o){r(t(e,n,o),function(e){i[C].insertBefore(e,i.nextSibling)},null,1)})},insertBefore:function(e,t){return h.call(this,e,t,function(e,t){e[C].insertBefore(t,e)})},insertAfter:function(e,t){return h.call(this,e,t,function(e,t){var n=e.nextSibling;n?e[C].insertBefore(t,n):e[C].appendChild(t)},1)},replaceWith:function(e){return x(t(e)).insertAfter(this),this.remove()},clone:function(e){var t,n,r=[];for(n=0,t=this.length;t>n;n++)r[n]=y(e||this,this[n]);return x(r)},addClass:function(e){return e=K.call(e).split(G),this.each(function(t){r(e,function(e){e&&!q(t,d(t,e))&&E(t,d(t,e))})})},removeClass:function(e){return e=K.call(e).split(G),this.each(function(t){r(e,function(e){e&&q(t,d(t,e))&&_(t,d(t,e))})})},hasClass:function(e){return e=K.call(e).split(G),l(this,function(t){return l(e,function(e){return e&&q(t,e)})})},toggleClass:function(e,t){return e=K.call(e).split(G),this.each(function(n){r(e,function(e){e&&("undefined"!=typeof t?t?!q(n,e)&&E(n,e):_(n,e):q(n,e)?_(n,e):E(n,e))})})},show:function(e){return e="string"==typeof e?e:"",this.each(function(t){t.style.display=e})},hide:function(){return this.each(function(e){e.style.display="none"})},toggle:function(e,t){return t="string"==typeof t?t:"","function"!=typeof e&&(e=null),this.each(function(n){n.style.display=n.offsetWidth||n.offsetHeight?"none":t,e&&e.call(n)})},first:function(){return x(this.length?this[0]:[])},last:function(){return x(this.length?this[this.length-1]:[])},next:function(){return this.related("nextSibling")},previous:function(){return this.related("previousSibling")},parent:function(){return this.related(C)},related:function(e){return x(this.map(function(t){for(t=t[e];t&&1!==t.nodeType;)t=t[e];return t||0},function(e){return e}))},focus:function(){return this.length&&this[0].focus(),this},blur:function(){return this.length&&this[0].blur(),this},css:function(e,t){function n(e,t,n){for(var r in i)if(i.hasOwnProperty(r)){n=i[r],(t=f(r))&&W.test(n)&&!(t in V)&&(n+=U);try{e.style[t]=d(e,n)}catch(o){}}}var r,i=e;return void 0===t&&"string"==typeof e?(t=this[0],t?t===k||t===S?(r=t===k?x.doc():x.viewport(),"width"==e?r.width:"height"==e?r.height:""):(e=f(e))?et(t,e):null:null):("string"==typeof e&&(i={},i[e]=t),!X.opasity&&"opacity"in i&&(i.filter=null!=i.opacity&&""!==i.opacity?"alpha(opacity="+100*i.opacity+")":"",i.zoom=e.zoom||1,delete i.opacity),this.each(n))},offset:function(e,t){if(e&&"object"==typeof e&&("number"==typeof e.top||"number"==typeof e.left))return this.each(function(t){p(t,e.left,e.top)});if("number"==typeof e||"number"==typeof t)return this.each(function(n){p(n,e,t)});if(!this[0])return{top:0,left:0,height:0,width:0};var n=this[0],r=n.ownerDocument.documentElement,i=n.getBoundingClientRect(),o=b(),a=n.offsetWidth,s=n.offsetHeight,u=i.top+o.y-Math.max(0,r&&r.clientTop,k.body.clientTop),c=i.left+o.x-Math.max(0,r&&r.clientLeft,k.body.clientLeft);return{top:u,left:c,height:s,width:a}},dim:function(){if(!this.length)return{height:0,width:0};var e=this[0],t=9==e.nodeType&&e.documentElement,n=t||!e.style||e.offsetWidth||e.offsetHeight?null:function(t){var n={position:e.style.position||"",visibility:e.style.visibility||"",display:e.style.display||""};return t.first().css({position:"absolute",visibility:"hidden",display:"block"}),n}(this),r=t?Math.max(e.body.scrollWidth,e.body.offsetWidth,t.scrollWidth,t.offsetWidth,t.clientWidth):e.offsetWidth,i=t?Math.max(e.body.scrollHeight,e.body.offsetHeight,t.scrollHeight,t.offsetHeight,t.clientHeight):e.offsetHeight;return n&&this.first().css(n),{height:i,width:r}},attr:function(e,t){var n,r=this[0];if("string"!=typeof e&&!(e instanceof String)){for(n in e)e.hasOwnProperty(n)&&this.attr(n,e[n]);return this}return"undefined"==typeof t?r?N.test(e)?j.test(e)&&"string"==typeof r[e]?!0:r[e]:"href"!=e&&"src"!=e||!X.hrefExtended?r[H](e):r[H](e,2):null:this.each(function(n){N.test(e)?n[e]=d(n,t):n[F](e,d(n,t))})},removeAttr:function(e){return this.each(function(t){j.test(e)?t[e]=!1:t.removeAttribute(e)})},val:function(e){return"string"==typeof e||"number"==typeof e?this.attr("value",e):this.length?this[0].value:null},data:function(e,t){var n,i,u=this[0];return"undefined"==typeof t?u?(n=s(u),"undefined"==typeof e?(r(u.attributes,function(e){(i=(""+e.name).match(z))&&(n[o(i[1])]=c(e.value))}),n):("undefined"==typeof n[e]&&(n[e]=c(this.attr("data-"+a(e)))),n[e])):null:this.each(function(n){s(n)[e]=t})},remove:function(){return this.deepEach(u),this.detach()},empty:function(){return this.each(function(e){for(i(e.childNodes,u);e.firstChild;)e.removeChild(e.firstChild)})},detach:function(){return this.each(function(e){e[C]&&e[C].removeChild(e)})},scrollTop:function(e){return g.call(this,null,e,"y")},scrollLeft:function(e){return g.call(this,e,null,"x")}},x.setQueryEngine=function(e){Z=e,delete x.setQueryEngine},x.aug=function(e,t){for(var n in e)e.hasOwnProperty(n)&&((t||m.prototype)[n]=e[n])},x.create=function(t){return"string"==typeof t&&""!==t?function(){if(M.test(t))return[w(t)];var e=t.match(/^\s*<([^\s>]+)/),n=k.createElement("div"),i=[],o=e?$[e[1].toLowerCase()]:null,a=o?o[2]+1:1,s=o&&o[3],u=C,c=X.autoTbody&&o&&"<table>"==o[0]&&!/<tbody/i.test(t);
for(n.innerHTML=o?o[0]+t+o[1]:t;a--;)n=n.firstChild;s&&n&&1!==n.nodeType&&(n=n.nextSibling);do e&&1!=n.nodeType||c&&(!n.tagName||"TBODY"==n.tagName)||i.push(n);while(n=n.nextSibling);return r(i,function(e){e[u]&&e[u].removeChild(e)}),i}():e(t)?[t.cloneNode(!0)]:[]},x.doc=function(){var e=x.viewport();return{width:Math.max(k.body.scrollWidth,T.scrollWidth,e.width),height:Math.max(k.body.scrollHeight,T.scrollHeight,e.height)}},x.firstChild=function(e){for(var t,n=e.childNodes,r=0,i=n&&n.length||0;i>r;r++)1===n[r].nodeType&&(t=n[i=r]);return t},x.viewport=function(){return{width:B?T.clientWidth:self.innerWidth,height:B?T.clientHeight:self.innerHeight}},x.isAncestor="compareDocumentPosition"in T?function(e,t){return 16==(16&e.compareDocumentPosition(t))}:"contains"in T?function(e,t){return e!==t&&e.contains(t)}:function(e,t){for(;t=t[C];)if(t===e)return!0;return!1},x}),function(e,t,n){"undefined"!=typeof module&&module.exports?module.exports=n():"function"==typeof define&&define.amd?define("lib/qwery/qwery",n):t[e]=n()}("qwery",this,function(){function e(){this.c={}}function t(e){return Q.g(e)||Q.s(e,"(^|\\s+)"+e+"(\\s+|$)",1)}function n(e,t){for(var n=0,r=e.length;r>n;n++)t(e[n])}function r(e){for(var t=[],n=0,r=e.length;r>n;++n)g(e[n])?t=t.concat(e[n]):t[t.length]=e[n];return t}function i(e){for(var t=0,n=e.length,r=[];n>t;t++)r[t]=e[t];return r}function o(e){for(;(e=e.previousSibling)&&1!=e[C];);return e}function a(e){return e.match(Y)}function s(e,n,r,i,o,a,s,u,l,f,h){var p,d,g,m,y;if(1!==this[C])return!1;if(n&&"*"!==n&&this[T]&&this[T].toLowerCase()!==n)return!1;if(r&&(d=r.match(N))&&d[1]!==this.id)return!1;if(r&&(y=r.match(O)))for(p=y.length;p--;)if(!t(y[p].slice(1)).test(this.className))return!1;if(l&&v.pseudos[l]&&!v.pseudos[l](this,h))return!1;if(i&&!s){m=this.attributes;for(g in m)if(Object.prototype.hasOwnProperty.call(m,g)&&(m[g].name||g)==o)return this}return i&&!c(a,J(this,o)||"",s)?!1:this}function u(e){return G.g(e)||G.s(e,e.replace(R,"\\$1"))}function c(e,t,n){switch(e){case"=":return t==n;case"^=":return t.match(K.g("^="+n)||K.s("^="+n,"^"+u(n),1));case"$=":return t.match(K.g("$="+n)||K.s("$="+n,u(n)+"$",1));case"*=":return t.match(K.g(n)||K.s(n,u(n),1));case"~=":return t.match(K.g("~="+n)||K.s("~="+n,"(?:^|\\s+)"+u(n)+"(?:\\s+|$)",1));case"|=":return t.match(K.g("|="+n)||K.s("|="+n,"^"+u(n)+"(-|$)",1))}return 0}function l(e,t){var r,i,o,u,c,l,f,p=[],d=[],g=t,m=V.g(e)||V.s(e,e.split(H)),v=e.match(F);if(!m.length)return p;if(u=(m=m.slice(0)).pop(),m.length&&(o=m[m.length-1].match(M))&&(g=y(t,o[1])),!g)return p;for(l=a(u),c=g!==t&&9!==g[C]&&v&&/^[+~]$/.test(v[v.length-1])?function(e){for(;g=g.nextSibling;)1==g[C]&&(l[1]?l[1]==g[T].toLowerCase():1)&&(e[e.length]=g);return e}([]):g[_](l[1]||"*"),r=0,i=c.length;i>r;r++)(f=s.apply(c[r],l))&&(p[p.length]=f);return m.length?(n(p,function(e){h(e,m,v)&&(d[d.length]=e)}),d):p}function f(e,t,n){if(p(t))return e==t;if(g(t))return!!~r(t).indexOf(e);for(var i,o,u=t.split(",");t=u.pop();)if(i=V.g(t)||V.s(t,t.split(H)),o=t.match(F),i=i.slice(0),s.apply(e,a(i.pop()))&&(!i.length||h(e,i,o,n)))return!0;return!1}function h(e,t,n,r){function i(e,r,u){for(;u=X[n[r]](u,e);)if(p(u)&&s.apply(u,a(t[r]))){if(!r)return u;if(o=i(u,r-1,u))return o}}var o;return(o=i(e,t.length-1,e))&&(!r||Z(o,r))}function p(e,t){return e&&"object"==typeof e&&(t=e[C])&&(1==t||9==t)}function d(e){var t,n,r=[];e:for(t=0;t<e.length;++t){for(n=0;n<r.length;++n)if(r[n]==e[t])continue e;r[r.length]=e[t]}return r}function g(e){return"object"==typeof e&&isFinite(e.length)}function m(e){return e?"string"==typeof e?v(e)[0]:!e[C]&&g(e)?e[0]:e:x}function y(e,t,n){return 9===e[C]?e.getElementById(t):e.ownerDocument&&((n=e.ownerDocument.getElementById(t))&&Z(n,e)&&n||!Z(e,e.ownerDocument)&&w('[id="'+t+'"]',e)[0])}function v(e,t){var n,o,a=m(t);if(!a||!e)return[];if(e===window||p(e))return!t||e!==window&&p(a)&&Z(e,a)?[e]:[];if(e&&g(e))return r(e);if(n=e.match(U)){if(n[1])return(o=y(a,n[1]))?[o]:[];if(n[2])return i(a[_](n[2]));if(et&&n[3])return i(a[E](n[3]))}return w(e,a)}function b(e,t){return function(n){var r,i;return L.test(n)?(9!==e[C]&&((i=r=e.getAttribute("id"))||e.setAttribute("id",i="__qwerymeupscotty"),n='[id="'+i+'"]'+n,t(e.parentNode||e,n,!0),r||e.removeAttribute("id")),void 0):(n.length&&t(e,n,!1),void 0)}}var w,x=document,q=x.documentElement,E="getElementsByClassName",_="getElementsByTagName",S="querySelectorAll",k="useNativeQSA",T="tagName",C="nodeType",N=/#([\w\-]+)/,O=/\.[\w\-]+/g,M=/^#([\w\-]+)$/,A=/^\.([\w\-]+)$/,D=/^([\w\-]+)$/,P=/^([\w]+)?\.([\w\-]+)$/,L=/(^|,)\s*[>~+]/,$=/^\s+|\s*([,\s\+\~>]|$)\s*/g,j=/[\s\>\+\~]/,B=/(?![\s\w\-\/\?\&\=\:\.\(\)\!,@#%<>\{\}\$\*\^'"]*\]|[\s\w\+\-]*\))/,R=/([.*+?\^=!:${}()|\[\]\/\\])/g,I=/^(\*|[a-z0-9]+)?(?:([\.\#]+[\w\-\.#]+)?)/,W=/\[([\w\-]+)(?:([\|\^\$\*\~]?\=)['"]?([ \w\-\/\?\&\=\:\.\(\)\!,@#%<>\{\}\$\*\^]+)["']?)?\]/,z=/:([\w\-]+)(\(['"]?([^()]+)['"]?\))?/,U=new RegExp(M.source+"|"+D.source+"|"+A.source),F=new RegExp("("+j.source+")"+B.source,"g"),H=new RegExp(j.source+B.source),Y=new RegExp(I.source+"("+W.source+")?"+"("+z.source+")?"),X={" ":function(e){return e&&e!==q&&e.parentNode},">":function(e,t){return e&&e.parentNode==t.parentNode&&e.parentNode},"~":function(e){return e&&e.previousSibling},"+":function(e,t,n,r){return e?(n=o(e))&&(r=o(t))&&n==r&&n:!1}};e.prototype={g:function(e){return this.c[e]||void 0},s:function(e,t,n){return t=n?new RegExp(t):t,this.c[e]=t}};var Q=new e,G=new e,K=new e,V=new e,Z="compareDocumentPosition"in q?function(e,t){return 16==(16&t.compareDocumentPosition(e))}:"contains"in q?function(e,t){return t=9===t[C]||t==window?q:t,t!==e&&t.contains(e)}:function(e,t){for(;e=e.parentNode;)if(e===t)return 1;return 0},J=function(){var e=x.createElement("p");return(e.innerHTML='<a href="#x">x</a>')&&"#x"!=e.firstChild.getAttribute("href")?function(e,t){return"class"===t?e.className:"href"===t||"src"===t?e.getAttribute(t,2):e.getAttribute(t)}:function(e,t){return e.getAttribute(t)}}(),et=!!x[E],tt=x.querySelector&&x[S],nt=function(e,t){var r,o,a=[];try{return 9!==t[C]&&L.test(e)?(n(r=e.split(","),b(t,function(e,t){o=e[S](t),1==o.length?a[a.length]=o.item(0):o.length&&(a=a.concat(i(o)))})),r.length>1&&a.length>1?d(a):a):i(t[S](e))}catch(s){}return rt(e,t)},rt=function(e,r){var i,o,a,s,u,c,f=[];if(e=e.replace($,"$1"),o=e.match(P)){for(u=t(o[2]),i=r[_](o[1]||"*"),a=0,s=i.length;s>a;a++)u.test(i[a].className)&&(f[f.length]=i[a]);return f}return n(c=e.split(","),b(r,function(e,t,n){for(u=l(t,e),a=0,s=u.length;s>a;a++)(9===e[C]||n||Z(u[a],r))&&(f[f.length]=u[a])})),c.length>1&&f.length>1?d(f):f},it=function(e){"undefined"!=typeof e[k]&&(w=e[k]?tt?nt:rt:rt)};return it({useNativeQSA:!0}),v.configure=it,v.uniq=d,v.is=f,v.pseudos={},v}),function(e,t,n){"undefined"!=typeof module&&module.exports?module.exports=n():"function"==typeof define&&define.amd?define("lib/bean/bean",n):t[e]=n()}("bean",this,function(e,t){e=e||"bean",t=t||this;var n,r=window,i=t[e],o=/[^\.]*(?=\..*)\.|.*/,a=/\..*/,s="addEventListener",u="removeEventListener",c=document||{},l=c.documentElement||{},f=l[s],h=f?s:"attachEvent",p={},d=Array.prototype.slice,g=function(e,t){return e.split(t||" ")},m=function(e){return"string"==typeof e},y=function(e){return"function"==typeof e},v="click dblclick mouseup mousedown contextmenu mousewheel mousemultiwheel DOMMouseScroll mouseover mouseout mousemove selectstart selectend keydown keypress keyup orientationchange focus blur change reset select submit load unload beforeunload resize move DOMContentLoaded readystatechange message error abort scroll ",b="show input invalid touchstart touchmove touchend touchcancel gesturestart gesturechange gestureend textinputreadystatechange pageshow pagehide popstate hashchange offline online afterprint beforeprint dragstart dragenter dragover dragleave drag drop dragend loadstart progress suspend emptied stalled loadmetadata loadeddata canplay canplaythrough playing waiting seeking seeked ended durationchange timeupdate play pause ratechange volumechange cuechange checking noupdate downloading cached updateready obsolete ",w=function(e,t,n){for(n=0;n<t.length;n++)t[n]&&(e[t[n]]=1);return e}({},g(v+(f?b:""))),x=function(){var e="compareDocumentPosition"in l?function(e,t){return t.compareDocumentPosition&&16===(16&t.compareDocumentPosition(e))}:"contains"in l?function(e,t){return t=9===t.nodeType||t===window?l:t,t!==e&&t.contains(e)}:function(e,t){for(;e=e.parentNode;)if(e===t)return 1;return 0},t=function(t){var n=t.relatedTarget;return n?n!==this&&"xul"!==n.prefix&&!/document/.test(this.toString())&&!e(n,this):null==n};return{mouseenter:{base:"mouseover",condition:t},mouseleave:{base:"mouseout",condition:t},mousewheel:{base:/Firefox/.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel"}}}(),q=function(){var e=g("altKey attrChange attrName bubbles cancelable ctrlKey currentTarget detail eventPhase getModifierState isTrusted metaKey relatedNode relatedTarget shiftKey srcElement target timeStamp type view which propertyName"),t=e.concat(g("button buttons clientX clientY dataTransfer fromElement offsetX offsetY pageX pageY screenX screenY toElement")),n=t.concat(g("wheelDelta wheelDeltaX wheelDeltaY wheelDeltaZ axis")),i=e.concat(g("char charCode key keyCode keyIdentifier keyLocation location")),o=e.concat(g("data")),a=e.concat(g("touches targetTouches changedTouches scale rotation")),s=e.concat(g("data origin source")),u=e.concat(g("state")),f=/over|out/,h=[{reg:/key/i,fix:function(e,t){return t.keyCode=e.keyCode||e.which,i}},{reg:/click|mouse(?!(.*wheel|scroll))|menu|drag|drop/i,fix:function(e,n,r){return n.rightClick=3===e.which||2===e.button,n.pos={x:0,y:0},e.pageX||e.pageY?(n.clientX=e.pageX,n.clientY=e.pageY):(e.clientX||e.clientY)&&(n.clientX=e.clientX+c.body.scrollLeft+l.scrollLeft,n.clientY=e.clientY+c.body.scrollTop+l.scrollTop),f.test(r)&&(n.relatedTarget=e.relatedTarget||e[("mouseover"==r?"from":"to")+"Element"]),t}},{reg:/mouse.*(wheel|scroll)/i,fix:function(){return n}},{reg:/^text/i,fix:function(){return o}},{reg:/^touch|^gesture/i,fix:function(){return a}},{reg:/^message$/i,fix:function(){return s}},{reg:/^popstate$/i,fix:function(){return u}},{reg:/.*/,fix:function(){return e}}],p={},d=function(e,t,n){if(arguments.length&&(e=e||((t.ownerDocument||t.document||t).parentWindow||r).event,this.originalEvent=e,this.isNative=n,this.isBean=!0,e)){var i,o,a,s,u,c=e.type,l=e.target||e.srcElement;if(this.target=l&&3===l.nodeType?l.parentNode:l,n){if(u=p[c],!u)for(i=0,o=h.length;o>i;i++)if(h[i].reg.test(c)){p[c]=u=h[i].fix;break}for(s=u(e,this,c),i=s.length;i--;)!((a=s[i])in this)&&a in e&&(this[a]=e[a])}}};return d.prototype.preventDefault=function(){this.originalEvent.preventDefault?this.originalEvent.preventDefault():this.originalEvent.returnValue=!1},d.prototype.stopPropagation=function(){this.originalEvent.stopPropagation?this.originalEvent.stopPropagation():this.originalEvent.cancelBubble=!0},d.prototype.stop=function(){this.preventDefault(),this.stopPropagation(),this.stopped=!0},d.prototype.stopImmediatePropagation=function(){this.originalEvent.stopImmediatePropagation&&this.originalEvent.stopImmediatePropagation(),this.isImmediatePropagationStopped=function(){return!0}},d.prototype.isImmediatePropagationStopped=function(){return this.originalEvent.isImmediatePropagationStopped&&this.originalEvent.isImmediatePropagationStopped()},d.prototype.clone=function(e){var t=new d(this,this.element,this.isNative);return t.currentTarget=e,t},d}(),E=function(e,t){return f||t||e!==c&&e!==r?e:l},_=function(){var e=function(e,t,n,r){var i=function(n,i){return t.apply(e,r?d.call(i,n?0:1).concat(r):i)},o=function(n,r){return t.__beanDel?t.__beanDel.ft(n.target,e):r},a=n?function(e){var t=o(e,this);return n.apply(t,arguments)?(e&&(e.currentTarget=t),i(e,arguments)):void 0}:function(e){return t.__beanDel&&(e=e.clone(o(e))),i(e,arguments)};return a.__beanDel=t.__beanDel,a},t=function(t,n,r,i,o,a,s){var u,c=x[n];"unload"==n&&(r=N(O,t,n,r,i)),c&&(c.condition&&(r=e(t,r,c.condition,a)),n=c.base||n),this.isNative=u=w[n]&&!!t[h],this.customType=!f&&!u&&n,this.element=t,this.type=n,this.original=i,this.namespaces=o,this.eventType=f||u?n:"propertychange",this.target=E(t,u),this[h]=!!this.target[h],this.root=s,this.handler=e(t,r,null,a)};return t.prototype.inNamespaces=function(e){var t,n,r=0;if(!e)return!0;if(!this.namespaces)return!1;for(t=e.length;t--;)for(n=this.namespaces.length;n--;)e[t]==this.namespaces[n]&&r++;return e.length===r},t.prototype.matches=function(e,t,n){return!(this.element!==e||t&&this.original!==t||n&&this.handler!==n)},t}(),S=function(){var e={},t=function(n,r,i,o,a,s){var u=a?"r":"$";if(r&&"*"!=r){var c,l=0,f=e[u+r],h="*"==n;if(!f)return;for(c=f.length;c>l;l++)if((h||f[l].matches(n,i,o))&&!s(f[l],f,l,r))return}else for(var p in e)p.charAt(0)==u&&t(n,p.substr(1),i,o,a,s)},n=function(t,n,r,i){var o,a=e[(i?"r":"$")+n];if(a)for(o=a.length;o--;)if(!a[o].root&&a[o].matches(t,r,null))return!0;return!1},r=function(e,n,r,i){var o=[];return t(e,n,r,null,i,function(e){return o.push(e)}),o},i=function(t){var n=!t.root&&!this.has(t.element,t.type,null,!1),r=(t.root?"r":"$")+t.type;return(e[r]||(e[r]=[])).push(t),n},o=function(n){t(n.element,n.type,null,n.handler,n.root,function(t,n,r){return n.splice(r,1),t.removed=!0,0===n.length&&delete e[(t.root?"r":"$")+t.type],!1})},a=function(){var t,n=[];for(t in e)"$"==t.charAt(0)&&(n=n.concat(e[t]));return n};return{has:n,get:r,put:i,del:o,entries:a}}(),k=function(e){n=arguments.length?e:c.querySelectorAll?function(e,t){return t.querySelectorAll(e)}:function(){throw new Error("Bean: No selector engine installed")}},T=function(e,t){if(f||!t||!e||e.propertyName=="_on"+t){var n=S.get(this,t||e.type,null,!1),r=n.length,i=0;for(e=new q(e,this,!0),t&&(e.type=t);r>i&&!e.isImmediatePropagationStopped();i++)n[i].removed||n[i].handler.call(this,e)}},C=f?function(e,t,n){e[n?s:u](t,T,!1)}:function(e,t,n,r){var i;n?(S.put(i=new _(e,r||t,function(t){T.call(e,t,r)},T,null,null,!0)),r&&null==e["_on"+r]&&(e["_on"+r]=0),i.target.attachEvent("on"+i.eventType,i.handler)):(i=S.get(e,r||t,T,!0)[0],i&&(i.target.detachEvent("on"+i.eventType,i.handler),S.del(i)))},N=function(e,t,n,r,i){return function(){r.apply(this,arguments),e(t,n,i)}},O=function(e,t,n,r){var i,o,s=t&&t.replace(a,""),u=S.get(e,s,null,!1),c={};for(i=0,o=u.length;o>i;i++)n&&u[i].original!==n||!u[i].inNamespaces(r)||(S.del(u[i]),!c[u[i].eventType]&&u[i][h]&&(c[u[i].eventType]={t:u[i].eventType,c:u[i].type}));for(i in c)S.has(e,c[i].t,null,!1)||C(e,c[i].t,!1,c[i].c)},M=function(e,t){var r=function(t,r){for(var i,o=m(e)?n(e,r):e;t&&t!==r;t=t.parentNode)for(i=o.length;i--;)if(o[i]===t)return t},i=function(e){var n=r(e.target,this);n&&t.apply(n,arguments)};return i.__beanDel={ft:r,selector:e},i},A=f?function(e,t,n){var i=c.createEvent(e?"HTMLEvents":"UIEvents");i[e?"initEvent":"initUIEvent"](t,!0,!0,r,1),n.dispatchEvent(i)}:function(e,t,n){n=E(n,e),e?n.fireEvent("on"+t,c.createEventObject()):n["_on"+t]++},D=function(e,t,n){var r,i,s,u,c=m(t);if(c&&t.indexOf(" ")>0){for(t=g(t),u=t.length;u--;)D(e,t[u],n);return e}if(i=c&&t.replace(a,""),i&&x[i]&&(i=x[i].base),!t||c)(s=c&&t.replace(o,""))&&(s=g(s,".")),O(e,i,n,s);else if(y(t))O(e,null,t);else for(r in t)t.hasOwnProperty(r)&&D(e,r,t[r]);return e},P=function(e,t,r,i){var s,u,c,l,f,m,v;{if(void 0!==r||"object"!=typeof t){for(y(r)?(f=d.call(arguments,3),i=s=r):(s=i,f=d.call(arguments,4),i=M(r,s,n)),c=g(t),this===p&&(i=N(D,e,t,i,s)),l=c.length;l--;)v=S.put(m=new _(e,c[l].replace(a,""),i,s,g(c[l].replace(o,""),"."),f,!1)),m[h]&&v&&C(e,m.eventType,!0,m.customType);return e}for(u in t)t.hasOwnProperty(u)&&P.call(this,e,u,t[u])}},L=function(e,t,n,r){return P.apply(null,m(n)?[e,n,t,r].concat(arguments.length>3?d.call(arguments,5):[]):d.call(arguments))},$=function(){return P.apply(p,arguments)},j=function(e,t,n){var r,i,s,u,c,l=g(t);for(r=l.length;r--;)if(t=l[r].replace(a,""),(u=l[r].replace(o,""))&&(u=g(u,".")),u||n||!e[h])for(c=S.get(e,t,null,!1),n=[!1].concat(n),i=0,s=c.length;s>i;i++)c[i].inNamespaces(u)&&c[i].handler.apply(e,n);else A(w[t],t,e);return e},B=function(e,t,n){for(var r,i,o=S.get(t,n,null,!1),a=o.length,s=0;a>s;s++)o[s].original&&(r=[e,o[s].type],(i=o[s].handler.__beanDel)&&r.push(i.selector),r.push(o[s].original),P.apply(null,r));return e},R={on:P,add:L,one:$,off:D,remove:D,clone:B,fire:j,Event:q,setSelectorEngine:k,noConflict:function(){return t[e]=i,this}};if(r.attachEvent){var I=function(){var e,t=S.entries();for(e in t)t[e].type&&"unload"!==t[e].type&&D(t[e].element,t[e].type);r.detachEvent("onunload",I),r.CollectGarbage&&r.CollectGarbage()};r.attachEvent("onunload",I)}return k(),R}),define("domReady",[],function(){function e(e){var t;for(t=0;t<e.length;t+=1)e[t](c)}function t(){var t=l;u&&t.length&&(l=[],e(t))}function n(){u||(u=!0,a&&clearInterval(a),t())}function r(e){return u?e(c):l.push(e),r}var i,o,a,s="undefined"!=typeof window&&window.document,u=!s,c=s?document:null,l=[];if(s){if(document.addEventListener)document.addEventListener("DOMContentLoaded",n,!1),window.addEventListener("load",n,!1);else if(window.attachEvent){window.attachEvent("onload",n),o=document.createElement("div");try{i=null===window.frameElement}catch(f){}o.doScroll&&i&&window.external&&(a=setInterval(function(){try{o.doScroll(),n()}catch(e){}},30))}"complete"===document.readyState&&n()}return r.version="2.0.1",r.load=function(e,t,n,i){i.isBuild?n(null):r(n)},r}),define("core",["require","lib/youarei/src/youarei","lib/bonzo/bonzo","lib/qwery/qwery","lib/bean/bean","domReady!"],function(e,t,n,r,i){function o(){this.eventBus=this.curryBean()}return o.prototype.packages={},o.prototype.getWidgetParams=function(e){var t,n,r={},i=e.data();i.sqwidget&&(i.sqwidgetUrl=i.sqwidget,delete i.sqwidget);var o=function(e,t,n){for(var r=0;r<e.length;r++)n=n[e[r].toLowerCase()]=r===e.length-1?t:n[e[r]]||{}};for(t in i)n=i[t],t.match("^sqwidget")&&o(t.match(/([A-Z]?[^A-Z]*)/g).slice(0,-1),n,r);return r.sqwidget},o.prototype.guid=function(){return"sqwidget-xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=0|16*Math.random(),n="x"==e?t:8|3&t;return n.toString(16)})},o.prototype.register=function(e){var t,r=this.guid(),i=n(e).addClass("sqwidget").addClass(r);if(t=this.getWidgetParams(i),t.el=i,t.id=r,!t.url)throw new Error("No widget source defined (set data-sqwidget-url)");return this.packages[t.id]=t},o.prototype.curryBean=function(){for(var e=this,t={},n=["fire","on","off","once"],r=0;r<n.length;r++){var o=n[r];!function(e,n){t[e]=function(t,r){return i[e](n,t,r)}}(o,e)}return t},o.prototype.initialiseWidget=function(e,n){if("function"!=typeof n)throw"bundle should return a function to bootstrap: "+e.url;var r=n({sqwidget:this,url:new t(e.url),el:e.el,id:e.id,config:e});i.fire(this,"rendered."+e.url,[r]),i.fire(this,"rendered."+e.id,[r])},o.prototype.detectSources=function(){var e=this;return n(r("div[data-sqwidget]")).each(function(t){e.register(t)}),e.packages},o.prototype.initialize=function(){var e=this;for(var t in this.packages)!function(t,n,r){var i=t.url.split("/"),o="./"+i.pop(),a=i.join("/"),s=sqwidget.require.config({context:n,baseUrl:a});s(["require",o],function(i,o){var a=function(){i(["main"],function(n){if("then"in n){var i=function(n){r.initialiseWidget.apply(e,[t,n])};n.then(i)}else r.initialiseWidget.apply(e,[t,n])},function(e){throw e})};if(o&&o.packages){for(var s=sqwidget.require.config({context:n,packages:o.packages,paths:o.paths}),u=["require"],c=0;c<o.packages.length;c++)u.push(o.packages[c].name);s(u,function(){var e=o.preloads||[];i(e,function(){a()})},function(e){throw e})}else a()},function(e){window.console&&console.log("Didn't load "+t.url+": "+e)})}(this.packages[t],t,this)},o}),define("sqwidget",["require","./core"],function(e,t){var n=new t;return window._sqwidgetCore||(window._sqwidgetCore=n),e(["domReady!"],function(){n.detectSources(),n.initialize()}),n}),this.sqwidget={define:define,require:require},require(["sqwidget"],function(){})});
Please sign in to comment.
Something went wrong with that request. Please try again.