- Created complete documentation in docs/ directory - Added PROJECT_OVERVIEW.md with feature highlights and getting started guide - Added ARCHITECTURE.md with system design and technical details - Added SECURITY.md with comprehensive security implementation guide - Added DEVELOPMENT.md with development workflows and best practices - Added DEPLOYMENT.md with production deployment instructions - Added API.md with complete REST API documentation - Added CONTRIBUTING.md with contribution guidelines - Added CHANGELOG.md with version history and migration notes - Reorganized all documentation files into docs/ directory for better organization - Updated README.md with proper documentation links and quick navigation - Enhanced project structure with professional documentation standards
1 line
20 KiB
JavaScript
1 line
20 KiB
JavaScript
window.Modernizr=function(e,d,o){function n(e){v.cssText=e}function t(e,t){return n(b.join(e+";")+(t||""))}function a(e,t){return typeof e===t}function r(e,t){return!!~(""+e).indexOf(t)}function s(e,t){for(var n in e){var i=e[n];if(!r(i,"-")&&v[i]!==o)return t=="pfx"?i:!0}return!1}function c(e,t,n){for(var i in e){var r=t[e[i]];if(r!==o)return n===!1?e[i]:a(r,"function")?r.bind(n||t):r}return!1}function i(e,t,n){var i=e.charAt(0).toUpperCase()+e.slice(1),r=(e+" "+k.join(i+" ")+i).split(" ");return a(t,"string")||a(t,"undefined")?s(r,t):(r=(e+" "+E.join(i+" ")+i).split(" "),c(r,t,n))}var l="2.6.2",u={},f=!0,p=d.documentElement,h="modernizr",m=d.createElement(h),v=m.style,g,y={}.toString,b=" -webkit- -moz- -o- -ms- ".split(" "),w="Webkit Moz O ms",k=w.split(" "),E=w.toLowerCase().split(" "),C={},x={},D={},j=[],L=j.slice,S,z=function(e,t,n,i){var r,o,a,s,c=d.createElement("div"),l=d.body,u=l||d.createElement("body");if(parseInt(n,10))while(n--)a=d.createElement("div"),a.id=i?i[n]:h+(n+1),c.appendChild(a);return r=["­",'<style id="s',h,'">',e,"</style>"].join(""),c.id=h,(l?c:u).innerHTML+=r,u.appendChild(c),l||(u.style.background="",u.style.overflow="hidden",s=p.style.overflow,p.style.overflow="hidden",p.appendChild(u)),o=t(c,e),l?c.parentNode.removeChild(c):(u.parentNode.removeChild(u),p.style.overflow=s),!!o},N={}.hasOwnProperty,T;!a(N,"undefined")&&!a(N.call,"undefined")?T=function(e,t){return N.call(e,t)}:T=function(e,t){return t in e&&a(e.constructor.prototype[t],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(i){var r=this;if(typeof r!="function")throw new TypeError;var o=L.call(arguments,1),a=function(){if(this instanceof a){var e=function(){};e.prototype=r.prototype;var t=new e,n=r.apply(t,o.concat(L.call(arguments)));return Object(n)===n?n:t}return r.apply(i,o.concat(L.call(arguments)))};return a}),C.touch=function(){var t;return"ontouchstart"in e||e.DocumentTouch&&d instanceof DocumentTouch?t=!0:z(["@media (",b.join("touch-enabled),("),h,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(e){t=e.offsetTop===9}),t},C.cssanimations=function(){return i("animationName")},C.csstransitions=function(){return i("transition")};for(var $ in C)T(C,$)&&(S=$.toLowerCase(),u[S]=C[$](),j.push((u[S]?"":"no-")+S));return u.addTest=function(e,t){if(typeof e=="object")for(var n in e)T(e,n)&&u.addTest(n,e[n]);else{e=e.toLowerCase();if(u[e]!==o)return u;t=typeof t=="function"?t():t,typeof f!="undefined"&&f&&(p.className+=" "+(t?"":"no-")+e),u[e]=t}return u},n(""),m=g=null,function(e,a){function n(e,t){var n=e.createElement("p"),i=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x<style>"+t+"</style>",i.insertBefore(n.lastChild,i.firstChild)}function s(){var e=g.elements;return typeof e=="string"?e.split(" "):e}function c(e){var t=m[e[p]];return t||(t={},h++,e[p]=h,m[h]=t),t}function i(e,t,n){t||(t=a);if(v)return t.createElement(e);n||(n=c(t));var i;return n.cache[e]?i=n.cache[e].cloneNode():d.test(e)?i=(n.cache[e]=n.createElem(e)).cloneNode():i=n.createElem(e),i.canHaveChildren&&!u.test(e)?n.frag.appendChild(i):i}function t(e,t){e||(e=a);if(v)return e.createDocumentFragment();t=t||c(e);var n=t.frag.cloneNode(),i=0,r=s(),o=r.length;for(;i<o;i++)n.createElement(r[i]);return n}function r(t,n){n.cache||(n.cache={},n.createElem=t.createElement,n.createFrag=t.createDocumentFragment,n.frag=n.createFrag()),t.createElement=function(e){return g.shivMethods?i(e,t,n):n.createElem(e)},t.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+s().join().replace(/\w+/g,function(e){return n.createElem(e),n.frag.createElement(e),'c("'+e+'")'})+");return n}")(g,n.frag)}function o(e){e||(e=a);var t=c(e);return g.shivCSS&&!f&&!t.hasCSS&&(t.hasCSS=!!n(e,"article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}")),v||r(e,t),e}var l=e.html5||{},u=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,d=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,f,p="_html5shiv",h=0,m={},v;(function(){try{var e=a.createElement("a");e.innerHTML="<xyz></xyz>",f="hidden"in e,v=e.childNodes.length==1||function(){a.createElement("a");var e=a.createDocumentFragment();return typeof e.cloneNode=="undefined"||typeof e.createDocumentFragment=="undefined"||typeof e.createElement=="undefined"}()}catch(e){f=!0,v=!0}})();var g={elements:l.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:l.shivCSS!==!1,supportsUnknownElements:v,shivMethods:l.shivMethods!==!1,type:"default",shivDocument:o,createElement:i,createDocumentFragment:t};e.html5=g,o(a)}(this,d),u._version=l,u._prefixes=b,u._domPrefixes=E,u._cssomPrefixes=k,u.testProp=function(e){return s([e])},u.testAllProps=i,u.testStyles=z,u.prefixed=function(e,t,n){return t?i(e,t,n):i(e,"pfx")},p.className=p.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+j.join(" "):""),u}(this,this.document),function(e,f,c){function d(e){return"[object Function]"==i.call(e)}function p(e){return"string"==typeof e}function h(){}function m(e){return!e||"loaded"==e||"complete"==e||"uninitialized"==e}function v(){var e=b.shift();w=1,e?e.t?g(function(){("c"==e.t?L.injectCss:L.injectJs)(e.s,0,e.a,e.x,e.e,1)},0):(e(),v()):w=0}function o(n,i,e,t,r,o,a){function s(e){if(!l&&m(c.readyState)&&(d.r=l=1,!w&&v(),c.onload=c.onreadystatechange=null,e)){"img"!=n&&g(function(){E.removeChild(c)},50);for(var t in D[i])D[i].hasOwnProperty(t)&&D[i][t].onload()}}var a=a||L.errorTimeout,c=f.createElement(n),l=0,u=0,d={t:e,s:i,e:r,a:o,x:a};1===D[i]&&(u=1,D[i]=[]),"object"==n?c.data=i:(c.src=i,c.type=n),c.width=c.height="0",c.onerror=c.onload=c.onreadystatechange=function(){s.call(this,u)},b.splice(t,0,d),"img"!=n&&(u||2===D[i]?(E.insertBefore(c,k?null:y),g(s,a)):D[i].push(c))}function t(e,t,n,i,r){return w=0,t=t||"j",p(e)?o("c"==t?s:a,e,t,this.i++,n,i,r):(b.splice(this.i++,0,e),1==b.length&&v()),this}function l(){var e=L;return e.loader={load:t,i:0},e}var n=f.documentElement,g=e.setTimeout,y=f.getElementsByTagName("script")[0],i={}.toString,b=[],w=0,r="MozAppearance"in n.style,k=r&&!!f.createRange().compareNode,E=k?n:y.parentNode,n=e.opera&&"[object Opera]"==i.call(e.opera),n=!!f.attachEvent&&!n,a=r?"object":n?"script":"img",s=n?"script":a,C=Array.isArray||function(e){return"[object Array]"==i.call(e)},x=[],D={},j={timeout:function(e,t){return t.length&&(e.timeout=t[0]),e}},u,L;L=function(e){function s(e){var e=e.split("!"),t=x.length,n=e.pop(),i=e.length,n={url:n,origUrl:n,prefixes:e},r,o,a;for(o=0;o<i;o++)a=e[o].split("="),(r=j[a.shift()])&&(n=r(n,a));for(o=0;o<t;o++)n=x[o](n);return n}function u(e,t,n,i,r){var o=s(e),a=o.autoCallback;o.url.split(".").pop().split("?").shift(),o.bypass||(t&&(t=d(t)?t:t[e]||t[i]||t[e.split("/").pop().split("?")[0]]),o.instead?o.instead(e,t,n,i,r):(D[o.url]?o.noexec=!0:D[o.url]=1,n.load(o.url,o.forceCSS||!o.forceJS&&"css"==o.url.split(".").pop().split("?").shift()?"c":c,o.noexec,o.attrs,o.timeout),(d(t)||d(a))&&n.load(function(){l(),t&&t(o.origUrl,r,i),a&&a(o.origUrl,r,i),D[o.url]=2})))}function t(e,t){function n(n,e){if(n){if(p(n))e||(o=function(){var e=[].slice.call(arguments);a.apply(this,e),s()}),u(n,o,t,0,i);else if(Object(n)===n)for(l in c=function(){var e=0,t;for(t in n)n.hasOwnProperty(t)&&e++;return e}(),n)n.hasOwnProperty(l)&&(!e&&!--c&&(d(o)?o=function(){var e=[].slice.call(arguments);a.apply(this,e),s()}:o[l]=function(t){return function(){var e=[].slice.call(arguments);t&&t.apply(this,e),s()}}(a[l])),u(n[l],o,t,l,i))}else!e&&s()}var i=!!e.test,r=e.load||e.both,o=e.callback||h,a=o,s=e.complete||h,c,l;n(i?e.yep:e.nope,!!r),r&&n(r)}var n,i,r=this.yepnope.loader;if(p(e))u(e,0,r,0);else if(C(e))for(n=0;n<e.length;n++)i=e[n],p(i)?u(i,0,r,0):C(i)?L(i):Object(i)===i&&t(i,r);else Object(e)===e&&t(e,r)},L.addPrefix=function(e,t){j[e]=t},L.addFilter=function(e){x.push(e)},L.errorTimeout=1e4,null==f.readyState&&f.addEventListener&&(f.readyState="loading",f.addEventListener("DOMContentLoaded",u=function(){f.removeEventListener("DOMContentLoaded",u,0),f.readyState="complete"},0)),e.yepnope=l(),e.yepnope.executeStack=v,e.yepnope.injectJs=function(e,t,n,i,r,o){var a=f.createElement("script"),s,c,i=i||L.errorTimeout;a.src=e;for(c in n)a.setAttribute(c,n[c]);t=o?v:t||h,a.onreadystatechange=a.onload=function(){!s&&m(a.readyState)&&(s=1,t(),a.onload=a.onreadystatechange=null)},g(function(){s||(s=1,t(1))},i),r?a.onload():y.parentNode.insertBefore(a,y)},e.yepnope.injectCss=function(e,t,n,i,r,o){var i=f.createElement("link"),a,t=o?v:t||h;i.href=e,i.rel="stylesheet",i.type="text/css";for(a in n)i.setAttribute(a,n[a]);r||(y.parentNode.insertBefore(i,y),g(t,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};function showDiv(e,t){if(t=="1"){$("#"+e).slideDown(250,function(){resizeDelimiter()})}else{$("#"+e).slideDown(250)}}function hideDiv(e,t){if(t=="1"){$("#"+e).slideUp(250,function(){resizeDelimiter()})}else{$("#"+e).slideUp(250)}}function reverseDiv(e,t){hideDiv(t);showDiv(e)}function toggleDiv(e){$("#"+e).animate({height:"toggle"},{duration:250})}function openDiv(e){document.getElementById(e).style.display="block";resizeDelimiter()}function closeDiv(e){document.getElementById(e).style.display="none";resizeDelimiter()}function simpleReverseDiv(e,t){if(document.getElementById(e).style.display=="block"){closeDiv(e);if(typeof t!=="undefined"){t.parent().removeClass("sort-down")}}else if(document.getElementById(e).style.display=="none"){openDiv(e);if(typeof t!="undefined"){t.parent().addClass("sort-down")}}}function enterSubmit(e,t){$(e).bind("keydown",function(e){if(e.keyCode==13){$(t).click();return false}})}function resizeDelimiter(){}(function(e){"use strict";function n(e){return new RegExp("(^|\\s+)"+e+"(\\s+|$)")}var i,r,o;if("classList"in document.documentElement){i=function(e,t){return e.classList.contains(t)};r=function(e,t){e.classList.add(t)};o=function(e,t){e.classList.remove(t)}}else{i=function(e,t){return n(t).test(e.className)};r=function(e,t){if(!i(e,t)){e.className=e.className+" "+t}};o=function(e,t){e.className=e.className.replace(n(t)," ")}}function t(e,t){var n=i(e,t)?o:r;n(e,t)}e.classie={hasClass:i,addClass:r,removeClass:o,toggleClass:t,has:i,add:r,remove:o,toggle:t}})(window);(function(i){i.fn.mask=function(e){this.unmask();if(this.css("position")=="static"){this.addClass("masked-relative")}this.addClass("masked");var t=i('<div class="loadmask"></div>');if(navigator.userAgent.toLowerCase().indexOf("msie")>-1){t.height(this.height()+parseInt(this.css("padding-top"))+parseInt(this.css("padding-bottom")));t.width(this.width()+parseInt(this.css("padding-left"))+parseInt(this.css("padding-right")))}if(navigator.userAgent.toLowerCase().indexOf("msie 6")>-1){this.find("select").addClass("masked-hidden")}this.append(t);if(typeof e=="string"){var n=i('<div class="loadmask-msg" style="display:none;"></div>');n.append("<div>"+e+"</div>");this.append(n);n.css("top",Math.round(this.height()/2-(n.height()-parseInt(n.css("padding-top"))-parseInt(n.css("padding-bottom")))/2)+"px");n.css("left",Math.round(this.width()/2-(n.width()-parseInt(n.css("padding-left"))-parseInt(n.css("padding-right")))/2)+"px");n.show()}};i.fn.unmask=function(e){this.find(".loadmask-msg,.loadmask").remove();this.removeClass("masked");this.removeClass("masked-relative");this.find("select").removeClass("masked-hidden")}})(jQuery);(function(w){var k="iCheck",E=k+"-helper",C="checkbox",x="radio",D="checked",p="un"+D,j="disabled",h="determinate",L="in"+h,S="update",z="type",N="click",T="touchbegin.i touchend.i",$="addClass",M="removeClass",F="trigger",I="label",m="cursor",O=/ipad|iphone|ipod|android|blackberry|windows phone|opera mini|silk/i.test(navigator.userAgent);w.fn[k]=function(t,n){var i='input[type="'+C+'"], input[type="'+x+'"]',r=w(),e=function(e){e.each(function(){var e=w(this);if(e.is(i)){r=r.add(e)}else{r=r.add(e.find(i))}})};if(/^(check|uncheck|toggle|indeterminate|determinate|disable|enable|update|destroy)$/i.test(t)){t=t.toLowerCase();e(this);return r.each(function(){var e=w(this);if(t=="destroy"){B(e,"ifDestroyed")}else{P(e,true,t)}if(w.isFunction(n)){n()}})}else if(typeof t=="object"||!t){var p=w.extend({checkedClass:D,disabledClass:j,indeterminateClass:L,labelHover:true},t),o=p.handle,h=p.hoverClass||"hover",m=p.focusClass||"focus",v=p.activeClass||"active",g=!!p.labelHover,y=p.labelHoverClass||"hover",b=(""+p.increaseArea).replace("%","")|0;if(o==C||o==x){i='input[type="'+o+'"]'}if(b<-50){b=-50}e(this);return r.each(function(){var i=w(this);B(i);var r=this,e=r.id,t=-b+"%",n=100+b*2+"%",o={position:"absolute",top:t,left:t,display:"block",width:n,height:n,margin:0,padding:0,background:"#fff",border:0,opacity:0},a=O?{position:"absolute",visibility:"hidden"}:b?o:{position:"absolute",opacity:0},s=r[z]==C?p.checkboxClass||"i"+C:p.radioClass||"i"+x,c=w(I+'[for="'+e+'"]').add(i.closest(I)),l=!!p.aria,u=k+"-"+Math.random().toString(36).substr(2,6),d='<div class="'+s+'" '+(l?'role="'+r[z]+'" ':""),f;if(l){c.each(function(){d+='aria-labelledby="';if(this.id){d+=this.id}else{this.id=u;d+=u}d+='"'})}d=i.wrap(d+"/>")[F]("ifCreated").parent().append(p.insert);f=w('<ins class="'+E+'"/>').css(o).appendTo(d);i.data(k,{o:p,s:i.attr("style")}).css(a);!!p.inheritClass&&d[$](r.className||"");!!p.inheritID&&e&&d.attr("id",k+"-"+e);d.css("position")=="static"&&d.css("position","relative");P(i,true,S);if(c.length){c.on(N+".i mouseover.i mouseout.i "+T,function(e){var t=e[z],n=w(this);if(!r[j]){if(t==N){if(w(e.target).is("a")){return}P(i,false,true)}else if(g){if(/ut|nd/.test(t)){d[M](h);n[M](y)}else{d[$](h);n[$](y)}}if(O){e.stopPropagation()}else{return false}}})}i.on(N+".i focus.i blur.i keyup.i keydown.i keypress.i",function(e){var t=e[z],n=e.keyCode;if(t==N){return false}else if(t=="keydown"&&n==32){if(!(r[z]==x&&r[D])){if(r[D]){A(i,D)}else{_(i,D)}}return false}else if(t=="keyup"&&r[z]==x){!r[D]&&_(i,D)}else if(/us|ur/.test(t)){d[t=="blur"?M:$](m)}});f.on(N+" mousedown mouseup mouseover mouseout "+T,function(e){var t=e[z],n=/wn|up/.test(t)?v:h;if(!r[j]){if(t==N){P(i,false,true)}else{if(/wn|er|in/.test(t)){d[$](n)}else{d[M](n+" "+v)}if(c.length&&g&&n==h){c[/ut|nd/.test(t)?M:$](y)}}if(O){e.stopPropagation()}else{return false}}})})}else{return this}};function P(e,t,n){var i=e[0],r=/er/.test(n)?L:/bl/.test(n)?j:D,o=n==S?{checked:i[D],disabled:i[j],indeterminate:e.attr(L)=="true"||e.attr(h)=="false"}:i[r];if(/^(ch|di|in)/.test(n)&&!o){_(e,r)}else if(/^(un|en|de)/.test(n)&&o){A(e,r)}else if(n==S){for(var a in o){if(o[a]){_(e,a,true)}else{A(e,a,true)}}}else if(!t||n=="toggle"){if(!t){e[F]("ifClicked")}if(o){if(i[z]!==x){A(e,r)}}else{_(e,r)}}}function _(e,t,n){var i=e[0],r=e.parent(),o=t==D,a=t==L,s=t==j,c=a?h:o?p:"enabled",l=v(e,c+g(i[z])),u=v(e,t+g(i[z]));if(i[t]!==true){if(!n&&t==D&&i[z]==x&&i.name){var d=e.closest("form"),f='input[name="'+i.name+'"]';f=d.length?d.find(f):w(f);f.each(function(){if(this!==i&&w(this).data(k)){A(w(this),t)}})}if(a){i[t]=true;if(i[D]){A(e,D,"force")}}else{if(!n){i[t]=true}if(o&&i[L]){A(e,L,false)}}y(e,o,t,n)}if(i[j]&&!!v(e,m,true)){r.find("."+E).css(m,"default")}r[$](u||v(e,t)||"");if(!!r.attr("role")&&!a){r.attr("aria-"+(s?j:D),"true")}r[M](l||v(e,c)||"")}function A(e,t,n){var i=e[0],r=e.parent(),o=t==D,a=t==L,s=t==j,c=a?h:o?p:"enabled",l=v(e,c+g(i[z])),u=v(e,t+g(i[z]));if(i[t]!==false){if(a||!n||n=="force"){i[t]=false}y(e,o,c,n)}if(!i[j]&&!!v(e,m,true)){r.find("."+E).css(m,"pointer")}r[M](u||v(e,t)||"");if(!!r.attr("role")&&!a){r.attr("aria-"+(s?j:D),"false")}r[$](l||v(e,c)||"")}function B(e,t){if(e.data(k)){e.parent().html(e.attr("style",e.data(k).s||""));if(t){e[F](t)}e.off(".i").unwrap();w(I+'[for="'+e[0].id+'"]').add(e.closest(I)).off(".i")}}function v(e,t,n){if(e.data(k)){return e.data(k).o[t+(n?"":"Class")]}}function g(e){return e.charAt(0).toUpperCase()+e.slice(1)}function y(e,t,n,i){if(!i){if(t){e[F]("ifToggled")}e[F]("ifChanged")[F]("if"+g(n))}}})(window.jQuery||window.Zepto);jQuery(document).on({click:function(){if($("#user-arrow-box").hasClass("hidden")){$("#user-arrow-box").removeClass("hidden");$("#notifications-arrow-box").addClass("hidden")}else{$("#user-arrow-box").addClass("hidden")}}},".own-profile-image.mt");$(".container.cbp-spmenu-push").on("click",function(){if(!$("#user-arrow-box").hasClass("hidden"))$("#user-arrow-box").addClass("hidden")});(function(e){"use strict";!e.addEventListener&&e.Element&&function(){function e(e,t){Window.prototype[e]=HTMLDocument.prototype[e]=Element.prototype[e]=t}var r=[];e("addEventListener",function(e,t){var n=this;r.unshift({__listener:function(e){e.currentTarget=n;e.pageX=e.clientX+document.documentElement.scrollLeft;e.pageY=e.clientY+document.documentElement.scrollTop;e.preventDefault=function(){e.returnValue=false};e.relatedTarget=e.fromElement||null;e.stopPropagation=function(){e.cancelBubble=true};e.relatedTarget=e.fromElement||null;e.target=e.srcElement||n;e.timeStamp=+new Date;t.call(n,e)},listener:t,target:n,type:e});this.attachEvent("on"+e,r[0].__listener)});e("removeEventListener",function(e,t){for(var n=0,i=r.length;n<i;++n){if(r[n].target==this&&r[n].type==e&&r[n].listener==t){return this.detachEvent("on"+e,r.splice(n,1)[0].__listener)}}});e("dispatchEvent",function(t){try{return this.fireEvent("on"+t.type,t)}catch(e){for(var n=0,i=r.length;n<i;++n){if(r[n].target==this&&r[n].type==t.type){r[n].call(this,t)}}}})}();function i(){var t=false;(function(e){if(/(android|ipad|playbook|silk|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))t=true})(navigator.userAgent||navigator.vendor||e.opera);return t}!String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")});function t(e,t){this.el=e;this.inputEl=e.querySelector("form > input.sb-search-input");this._initEvents()}t.prototype={_initEvents:function(){var t=this,e=function(e){e.stopPropagation();t.inputEl.value=t.inputEl.value.trim();if(!classie.has(t.el,"sb-search-open")){e.preventDefault();t.open()}else if(classie.has(t.el,"sb-search-open")&&/^\s*$/.test(t.inputEl.value)){e.preventDefault();t.close()}};this.el.addEventListener("click",e);this.el.addEventListener("touchstart",e);this.inputEl.addEventListener("click",function(e){e.stopPropagation()});this.inputEl.addEventListener("touchstart",function(e){e.stopPropagation()})},open:function(){var t=this;classie.add(this.el,"sb-search-open");if(!i()){this.inputEl.focus()}var n=function(e){t.close();this.removeEventListener("click",n);this.removeEventListener("touchstart",n)};document.addEventListener("click",n);document.addEventListener("touchstart",n)},close:function(){this.inputEl.blur();classie.remove(this.el,"sb-search-open")}};e.UISearch=t})(window); |