PageSourceSearch

https://www.kyuden.co.jp/library/2021/js/baser.min.js

js kyuden.co.jp collected 2026-10-01 10:34:39 UTC 59,345 bytes, 15 lines download raw bytes

1/**!
2* baserjs - v0.13.0-extends
3* update: 2016-12-05
4* Author: baserCMS Users Community [https://github.com/baserproject/]
5* Github: https://github.com/baserproject/baserjs
6* License: Licensed under the MIT License
7*/
8
9(function ($) {
10
11!function(t){function e(o){if(s[o])return s[o].exports;var i=s[o]={exports:{},id:o,loaded:!1};return t[o].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var s={};return e.m=t,e.c=s,e.p="",e(0)}([function(t,e,s){"use strict";var o=s(1);window.baser=o;var i=s(29);$.extend($,i),$.extend($.fn,i.prototype)},function(t,e,s){"use strict";var o=s(2),i=s(3);e.ClassNameSeparatorForBEM=o,e.ElementClassNameCase=i;var a=s(4),n=s(13),r=s(14),l=s(12),c=s(11),h=s(9),p=s(16),u=s(18),d=s(7),m=s(6),f=s(8),v=s(17),g=s(19),_=s(10),y=s(20),b=s(21),$=s(22),C=s(24),w=s(25),S=s(26),N=s(23),E=s(27),T=s(15),O=s(5),P=s(28);e.AlignedBoxes=a,e.AnimationFrames=n,e.BackgroundContainer=r,e.BaserElement=l,e.BreakPoints=c,e.Browser=h,e.CheckableElement=p,e.Checkbox=u,e.DispatchEvent=d,e.EventDispatcher=m,e.EventHandler=f,e.FormElement=v,e.GoogleMaps=g,e.Locational=_,e.Radio=y,e.RadioGroup=b,e.Scroll=$,e.Select=C,e.Sequence=w,e.TextField=S,e.Timer=N,e.UtilArray=E,e.UtilMath=T,e.UtilString=O,e.YouTube=P},function(t,e){"use strict";var s;!function(t){t[t.HYPHEN=0]="HYPHEN",t[t.DOUBLE_HYPHEN=1]="DOUBLE_HYPHEN",t[t.UNDERSCORE=2]="UNDERSCORE",t[t.DOUBLE_UNDERSCORE=3]="DOUBLE_UNDERSCORE",t[t.CAMEL_CASE=4]="CAMEL_CASE"}(s||(s={})),t.exports=s},function(t,e){"use strict";var s;!function(t){t[t.HYPHEN_DELIMITED=0]="HYPHEN_DELIMITED",t[t.SNAKE_CASE=1]="SNAKE_CASE",t[t.CAMEL_CASE=2]="CAMEL_CASE"}(s||(s={})),t.exports=s},function(t,e,s){"use strict";var o=this&&this.__extends||function(t,e){function s(){this.constructor=t}for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o]);t.prototype=null===e?Object.create(e):(s.prototype=e.prototype,new s)},i=s(5),a=s(6),n=s(9),r=s(11),l=s(12),c=function(t){function e(s,o,a){var n=this;void 0===o&&(o=0),t.call(this),this.$el=s,e.boot();var l=this.$el.data(e.DATA_KEY_ID);l&&this.destroy(),l=i.UID(),this.$el.data(e.DATA_KEY_ID,l),this.$el.data(e.DATA_KEY,this),e.groups[l]=this;var c;c="number"==typeof o?{Infinity:o}:o,this._columns=new r(c,function(t,e,s){n._currentColumn=t,n._align()}),this._callback=a,this._align(),this.on("realign",function(){n._align()})}return o(e,t),e.createChar=function(){var t=$("<del>M</del>").css({display:"block",visibility:"hidden",position:"absolute",padding:0,top:0,zIndex:-1});t.appendTo("body"),e.dummyCharElement=t[0],e.currentFontSize=e.dummyCharElement.offsetHeight},e.isChanged=function(){return e.currentFontSize!==e.dummyCharElement.offsetHeight&&(e.currentFontSize=e.dummyCharElement.offsetHeight,!0)},e.observerForFontSize=function(){e.isChanged()&&e.reAlign()},e.reAlign=function(){for(var t in e.groups)e.groups.hasOwnProperty(t)&&e.groups[t].trigger("realign")},e.boot=function(){e.isBooted||($(window).on("load",e.reAlign),n.browser.on("resizeend",e.reAlign),e.isBooted=!0,e.createChar(),e.watchTimer=setInterval(e.observerForFontSize,e.watchInterval))},e.prototype.destroy=function(){this.$el.each(function(t,s){var o=$(s),i=o.data(e.DATA_KEY_ID);o.removeData(e.DATA_KEY_ID),i in e.groups&&delete e.groups[i]})},e.prototype._align=function(){var t=this,e=[],s=0,o=this.$el.length-1;this.$el.each(function(i,a){var n=$(a);l.removeCSSPropertyFromDOMElement("height",a);var r=i%t._currentColumn;0===r&&(e=[]),e[r]=n;var c=n.height();if((0===r||c>s)&&(s=c),i===o||r===t._currentColumn-1)for(var h=0,p=e;h<p.length;h++){var u=p[h];if(u){var d=!1;t._callback&&(d=!t._callback(s,c,t)),d||u.height(s)}}})}
11,e.DATA_KEY="bc-box",e.DATA_KEY_ID=e.DATA_KEY+"-id",e.watchInterval=1e3,e.isBooted=!1,e.groups={},e}(a);t.exports=c},function(t,e){"use strict";var s=function(){function t(){}return t.UID=function(t){void 0===t&&(t="uid");var e=1e8*Math.random(),s=(new Date).valueOf(),o=Math.abs(Math.floor(e+s));return t&&(t+="-"),""+t+o.toString(24)},t.hyphenDelimited=function(t){for(var e=[],s=t.replace(/[A-Z]/g,function(t){return" "+t.toLowerCase()}).split(/[^a-z0-9]+/gi),o=0,i=s;o<i.length;o++){var a=i[o];a&&e.push(a.toLowerCase())}return e.join("-")},t.snakeCase=function(e){return t.hyphenDelimited(e).replace(/-/g,"_")},t.camelCase=function(e,s){void 0===s&&(s=!1);var o=t.hyphenDelimited(e);return s&&/^[a-z]/.test(o)&&(o="-"+o),o.replace(/-([a-z])/g,function(t,e){return e.toUpperCase()})},t.isFalsy=function(t){var e=/^\s*(?:false|null|undefined|0|0?(?:\.0+)?)?\s*$/i;return e.test(t.toLowerCase())},t.divide=function(t,e){var s,o,i=t.split(e);return i&&(s=i.shift(),i.length&&(o=i.join(e))),[s,o]},t}();t.exports=s},function(t,e,s){"use strict";var o=s(7),i=s(8),a=function(){function t(){}return t.prototype.on=function(e,s){var o;o="string"==typeof e?e.split(/\s+/g):e;for(var a=0,n=o;a<n.length;a++){var r=n[a],l=new i(this,r,s);t.eventHandlers[l.id]=l,t.types[r]||(t.types[r]=[]),t.types[r].push(l)}return this},t.prototype.off=function(e){var s;s="string"==typeof e?e.split(/\s+/g):e;for(var o=0,i=s;o<i.length;o++){var a=i[o];delete t.types[a]}return this},t.prototype.trigger=function(e,s,i){void 0===s&&(s=[]),i=i||this;var a,n;if("string"==typeof e?(a=e,n=new o(e)):(n=e,a=n.type),t.types[a])for(var r=t.types[a].slice();r.length;){var l=r.shift();if(l.context===this){var c=l.fire(i,n,s);if(c&&(n.preventDefault(),n.stopImmediatePropagation()),n.isImmediatePropagationStopped())break}}return this},t.eventHandlers={},t.types={},t}();t.exports=a},function(t,e){"use strict";var s=function(){function t(t){this._isImmediatePropagationStopped=!1,this._isDefaultPrevented=!1,this.type=t}return t.prototype.stopImmediatePropagation=function(){this._isImmediatePropagationStopped=!0},t.prototype.isImmediatePropagationStopped=function(){return this._isImmediatePropagationStopped},t.prototype.preventDefault=function(){this._isDefaultPrevented=!0},t.prototype.isDefaultPrevented=function(){return this._isDefaultPrevented},t}();t.exports=s},function(t,e,s){"use strict";var o=s(5),i=function(){function t(t,e,s){this.context=t,this.id=o.UID(),this.type=e,this._handler=s}return t.prototype.fire=function(t,e,s){var o=this._handler.apply(t,[e].concat(s));return void 0!==o&&!o},t}();t.exports=i},function(t,e,s){"use strict";var o=this&&this.__extends||function(t,e){function s(){this.constructor=t}for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o]);t.prototype=null===e?Object.create(e):(s.prototype=e.prototype,new s)},i=s(6),a=s(10),n=function(t){function e(){var e=this;t.call(this),this.resizeEndInterval=100,this.scrollEndInterval=100,this.isResize=!1,this.isScroll=!1;var s,o=$(window);o.on("resize",function(t){e.isResize||e.trigger("resizestart"),e.isResize=!0,e.trigger("resize"),window.clearTimeout(s),s=window.setTimeout(function(){e.isResize=!1,e.trigger("resize"),e.trigger("resizeend")},e.resizeEndInterval)});var i;o.on("scroll",function(t){e.isScroll||e.trigger("scrollstart"),e.isScroll=!0,e.trigger("scroll"),window.clearTimeout(i),i=window.setTimeout(function(){e.isScroll=!1,e.trigger("scroll"),e.trigger("scrollend")},e.resizeEndInterval)})}return o(e,t),e.jumpTo=function(t,e){void 0===e&&(e=!1);var s;s="string"==typeof t?t:t.href,e?window.open(s,null):window.location.href=s},e.getUA=function(){var t=navigator.userAgent,e={iOS:!1,android:/android/i.test(t),iPad:/ipad/i.test(t),iPhone:/iphone/i.test(t),iPod:/ipod/i.test(t),safari:/safari/i.test(t),chrome:/crios|chrome/i.test(t),edge:/edge/i.test(t),ie:/msie/.test(t)};return e.iOS=e.iPad||e.iPhone||e.iPod||!1,e.chrome&&(e.safari=!1),e.edge&&(e.safari=!1,e.chrome=!1),e},e.inheritParams=function(t){var e=$("a, area").filter("[href]"),s=new a(location);if(t in s.params){var o=t,i=s.params[t];e.each(function(t,e){var n=e,r=new a(n);s.host===r.host&&(r.addParam(o,i),n.href=r.href)})}},e.browser=new e,e.spec={isTouchable:"ontouchstart"in window,ua:e.getUA()},e.apiScheme=/https?:/i.test(location.protocol)?"":"http:",e}(i);t.exports=n},function(t,e,s){"use strict";var o=s(5),i=function(){function t(t){this.protocol=t.protocol,this.host=t.host,this.hostname=t.hostname,this.port=t.port,this.pathname=t.pathname,this.search=t.search,this.hash=t.hash,this.update()}return t.parseQueryString=function(t){var e={};if(t)for(var s=t.split(/&/g),i=0,a=s;i<a.length;i++){var n=a[i],r=o.divide(n,"="),l=r[0],c=r[1];if(l)if(/\[\]$/.test(l)){l=l.replace(/\[\]$/,"");var h=e[l];h&&h instanceof Array?(h.push(c),e[l]=h):e[l]=[c]}else e[l]=c}return e},t.prototype.update=function(){return this.origin=this.protocol+"//"+this.host,this.path=""+this.pathname+this.search+this.hash,this.href=""+this.origin+this.path,this.query=this.search.replace(/^\?/,""),this.params=t.parseQueryString(this.query),this},t.prototype.addParam=function(t,e){if("string"!=typeof e&&e)for(var s=0,o=e;s<o.length;s++){var i=o[s],a="";void 0!==i&&(a="="+i),this.search?this.search+="&"+t+"[]"+a:this.search="?"+t+"[]"+a}else{var a="";void 0!==e&&(a="="+e),this.search?this.search+="&"+t+a:this.search="?"+t+a}return this.update(),this},t.prototype.removeParam=function(t){return this.search=this.search.replace(new RegExp(t+"(?:\\[\\])?(?:=[^&]*)?(&|$)","g"),""),this.update(),this},t.prototype.toString=function(){return this.update(),this.href},t}();t.exports=i},function(t,e,s){"use strict";var o=this&&this.__extends||function(t,e){function s(){this.constructor=t}for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o]);t.prototype=null===e?Object.create(e):(s.prototype=e.prototype,new s)},i=s(6),a=s(9),n=function(t){function e(e,s){var o=this;t.call(this),this.currentPoint=0,this.breakPoints=[],this._values={},this._setBreakPoints(e),a.browser.on("resizeend",function(){for(var t=Math.max(window.document.documentElement.clientWidth,window.innerWidth),e=0,i=o.breakPoints;e<i.length;e++){var a=i[e];
11if(t<=a){if(o.currentPoint!==a){o.currentPoint=a;var n=o._values[a];s&&s(n,a,t),o.trigger("breakpoint",[n,a,t],o),o.trigger("breakpoint:"+a,[n,t],o)}break}}}),a.browser.trigger("resizeend")}return o(e,t),e.prototype.add=function(t){this._setBreakPoints(t)},e.prototype._setBreakPoints=function(t){for(var e in t)if(t.hasOwnProperty(e)){var s=void 0;if(s=/^defaults?$/i.test(e)?1/0:parseFloat(e),s>=1){this.breakPoints.push(s);var o=t[e];this._values[s]=o}}this.breakPoints.sort(function(t,e){return t-e})},e}(i);t.exports=n},function(t,e,s){"use strict";var o=this&&this.__extends||function(t,e){function s(){this.constructor=t}for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o]);t.prototype=null===e?Object.create(e):(s.prototype=e.prototype,new s)},i=s(5),a=s(6),n=s(3),r=s(2),l="-",c="--",h="_",p="__",u=function(t){function e(s){if(t.call(this),this.name="",this._elementized=!1,this.el=s,this.$el=$(s),this.$el.data("bc-element"))return"console"in window&&console.warn("This element is elementized of baserJS."),void(this._elementized=!0);this.$el.data("bc-element",this);var o=s.id||i.UID(),a=s.getAttribute("name");s.id=o,this.id=o,this.name=a,this.addClass(e.classNameElementCommon)}return o(e,t),e.createClassName=function(t,s,o){void 0===s&&(s=""),void 0===o&&(o="");var a,u,d,m,f="";switch(e.classNameDefaultCase){case n.HYPHEN_DELIMITED:u=l,t=i.hyphenDelimited(t),s=i.hyphenDelimited(s),o=i.hyphenDelimited(o);break;case n.SNAKE_CASE:u=h,t=i.snakeCase(t),s=i.snakeCase(s),o=i.snakeCase(o);break;case n.CAMEL_CASE:u="",t=i.camelCase(t,!0),s=i.camelCase(s),o=i.camelCase(o)}switch(e.classNameDefaultSeparatorForElement){case r.HYPHEN:d=l;break;case r.DOUBLE_HYPHEN:d=c;break;case r.UNDERSCORE:d=h;break;case r.DOUBLE_UNDERSCORE:d=p;break;case r.CAMEL_CASE:d=""}switch(e.classNameDefaultSeparatorForModifier){case r.HYPHEN:m=l;break;case r.DOUBLE_HYPHEN:m=c;break;case r.UNDERSCORE:m=h;break;case r.DOUBLE_UNDERSCORE:m=p;break;case r.CAMEL_CASE:m=""}return e.classNameDefaultPrefix&&(a=e.classNameDefaultPrefix,a=a.replace(/^[^a-z_-]/i,"").replace(/[^a-z0-9_-]+/gi,"").replace(/^--+/,"-"),f+=a),f+=u+t,s&&(f+=d+s),o&&(f+=m+o),f},e.getBoolAttr=function(t,e){var s;if(s=t[e],s===!0)return!0;var o=t.attributes.getNamedItem(e);return!!o&&(s=o.value,""===s||!i.isFalsy(""+s))},e.addClass=function(t,s,o,i){void 0===o&&(o=""),void 0===i&&(i="");var a=$(t),n=e.createClassName(s,o,i);a.addClass(n)},e.addClassTo=function(t,s,o,i){void 0===o&&(o=""),void 0===i&&(i="");var a=e.createClassName(s,o,i);t.addClass(a)},e.removeClass=function(t,s,o,i){void 0===o&&(o=""),void 0===i&&(i="");var a=$(t),n=e.createClassName(s,o,i);a.removeClass(n)},e.removeClassFrom=function(t,s,o,i){void 0===o&&(o=""),void 0===i&&(i="");var a=e.createClassName(s,o,i);t.removeClass(a)},e.removeCSSProp=function(t,e){var s=t.style;if(s){var o=s;s.removeProperty?s.removeProperty(e):o.removeAttribute&&o.removeAttribute(e)}},e.removeCSSPropertyFromDOMElement=function(t,s){e.removeCSSProp(s,t)},e.removeCSSProperty=function(t,s){s.each(function(s,o){e.removeCSSProp(o,t)})},e.prototype.addClass=function(t,s,o){void 0===s&&(s=""),void 0===o&&(o=""),e.addClass(this.el,t,s,o)},e.prototype.getBoolAttr=function(t){return e.getBoolAttr(this.el,t)},e.prototype.mergeOptions=function(t,e){var s={},o={};for(var i in t)if(t.hasOwnProperty(i)){switch(i){case"id":case"class":break;default:s[i]=this.$el.attr(i)}o[i]=this.$el.data(i)}return $.extend({},t,e,o,s)},e.classNameDefaultPrefix="-bc",e.classNameElementCommon="element",e.classNameDefaultCase=n.HYPHEN_DELIMITED,e.classNameDefaultSeparatorForElement=r.DOUBLE_UNDERSCORE,e.classNameDefaultSeparatorForModifier=r.DOUBLE_HYPHEN,e}(a);t.exports=u},function(t,e,s){"use strict";var o=this&&this.__extends||function(t,e){function s(){this.constructor=t}for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o]);t.prototype=null===e?Object.create(e):(s.prototype=e.prototype,new s)},i=s(7),a=s(6),n=function(t){function e(e){t.call(this),this._isStop=!0,this._callback=e,this._isPolyfill=!("requestAnimationFrame"in window&&"cancelAnimationFrame"in window)}return o(e,t),e.prototype.start=function(t){var s=this;t=t||this,this._isStop=!1;var o=(new Date).getTime();if(this._isPolyfill){var a=1e3/e.FRAME_RATE,n=function(){clearTimeout(s._requestId);
11var e=(new Date).getTime(),r=s._enterFrame(t,e,o);if(r.isDefaultPrevented()||s._isStop){var l=new i("stop");s.trigger(l,[e,o,t],t)}else s._requestId=setTimeout(n,a)};this._requestId=setTimeout(n,a)}else{var r=function(e){cancelAnimationFrame(s._requestId);var a=s._enterFrame(t,e,o);if(a.isDefaultPrevented()||s._isStop){var n=new i("stop");s.trigger(n,[e,o,t],t)}else s._requestId=requestAnimationFrame(r)};this._requestId=requestAnimationFrame(r)}return this},e.prototype.stop=function(){return this._isStop=!0,this._isPolyfill?clearTimeout(this._requestId):cancelAnimationFrame(this._requestId),this},e.prototype._enterFrame=function(t,e,s){this._callback&&this._callback.call(t,e,s,t);var o=new i("enterframe");return this.trigger(o,[e,s,t],this),o},e.FRAME_RATE=60,e}(a);t.exports=n},function(t,e,s){"use strict";var o=this&&this.__extends||function(t,e){function s(){this.constructor=t}for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o]);t.prototype=null===e?Object.create(e):(s.prototype=e.prototype,new s)},i=s(15),a=s(9),n=s(12),r=function(t){function e(s,o){if(t.call(this,s),!this._elementized&&s.querySelector){this.$el.addClass(e.className),this.$el.data(e.className,this),this._config=$.extend({},e.defaultOption,o),this._$bgElement=this.$el.find(this._config.child);var i=this._$bgElement.is("img");if(this._bgWidth=+(this.$el.data("width")||this._$bgElement.data("width")||this._$bgElement.attr("width")||this._$bgElement.width())||400,this._bgHeight=+(this.$el.data("height")||this._$bgElement.data("height")||this._$bgElement.attr("height")||this._$bgElement.height())||300,i&&this._config.useCSSBackgroundImage){var n=this._$bgElement[0];this.$el.css({backgroundImage:"url("+n.src+")",backgroundSize:this._config.size,backgroundPosition:this._config.align+" "+this._config.valign,backgroundRepeat:"no-repeat"}),this._$bgElement.detach()}else{var r=this.$el.css("position");"static"!==r&&""!==r&&null!=r||this.$el.css("position","relative"),this._$bgElement.css({position:"absolute"}),this._bgStyle={width:0,height:0,top:0,left:0,maxWidth:"none",minWidth:0,maxHeight:"none",minHeight:0},this.calc(),a.browser.on("resizeend",this.calc.bind(this))}}}return o(e,t),e.prototype.calc=function(){var t=this._config.outer?this.$el.outerWidth():this.$el.width(),e=this._config.outer?this.$el.outerHeight():this.$el.height(),s=i.stretchDimension(t,e,this._bgWidth,this._bgHeight,this._config.size,this._config.align,this._config.valign),o=s.width,a=s.height,n=s.top,r=s.left;this._bgStyle.width=o,this._bgStyle.height=a,this._bgStyle.top=n,this._bgStyle.left=r,this._$bgElement.css(this._bgStyle)},e.className="-bc-background-container-element",e.defaultOption={align:"center",valign:"center",size:"cover",child:">*:first",outer:!1,useCSSBackgroundImage:!1},e}(n);t.exports=r},function(t,e){"use strict";var s=function(){function t(){}return t.random=function(t,e){void 0===t&&(t=1),void 0===e&&(e=0);var s=Math.random(),o=Math.min(t,e),i=Math.max(t,e);return s*(i-o)+o},t.sum=function(t){for(var e=t.slice(),s=0;e.length;)s+=e.shift();return s},t.split=function(t,e){var s=[];t=Math.floor(t),e=Math.floor(e);var o=Math.floor(t/e);if(0<e)for(var i=e,a=t%e,n=a;i--;)0<n||a<0&&0===n?s.push(o+1):s.push(o),n+=a<0?1:-1;return s},t.stretchDimension=function(t,e,s,o,i,a,n){void 0===i&&(i="contain"),void 0===a&&(a="center"),void 0===n&&(n="center");var r=1,l=s/o,c=t/e;switch(i){case"cover":r=1<c?1<s&&l<c?t/s:e/o:1<o&&c<l?e/o:t/s;break;case"contain":r=1<c?1<s&&l<c?e/o:t/s:1<o&&c<l?t/s:e/o}var h,p=s*r,u=o*r;switch(n){case"top":h=0;break;case"bottom":h=e-u;break;default:h=e/2-u/2}var d;switch(a){case"left":d=0;break;case"right":d=t-p;break;default:d=t/2-p/2}return{width:p,height:u,top:h,left:d}},t}();t.exports=s},function(t,e,s){"use strict";var o=this&&this.__extends||function(t,e){function s(){this.constructor=t}for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o]);t.prototype=null===e?Object.create(e):(s.prototype=e.prototype,new s)},i=s(12),a=s(17),n=function(t){function e(s,o){var i=this;t.call(this,s,$.extend({},e.defaultOption,o)),this._elementized||s.querySelector&&(this._checkedClass=this._config.checkedClass,this.checked=this.el.checked,this.defaultChecked=this.el.defaultChecked,this._update(),this.$el.on("change.bcCheckableElement",function(){i._onchenge()}))}return o(e,t),e.prototype.update=function(){this.$el.prop("checked")!==this.checked&&this._update()},e.prototype._onchenge=function(){this.checked=!this.checked,this._update()},e.prototype._update=function(){var t=this.el.checked;this.$el.attr("aria-checked",""+t),t?(this.$el.addClass(this._checkedClass),this.$label.addClass(this._checkedClass),this.$wrapper.addClass(this._checkedClass),i.addClass(this.el,a.classNameFormElementCommon,"",e.classNameStateChecked),i.addClassTo(this.$label,a.classNameFormElementCommon,a.classNameLabel,e.classNameStateChecked),i.addClassTo(this.$wrapper,a.classNameWrapper,"",e.classNameStateChecked),i.removeClass(this.el,a.classNameFormElementCommon,"",e.classNameStateUnchecked),i.removeClassFrom(this.$label,a.classNameFormElementCommon,a.classNameLabel,e.classNameStateUnchecked),i.removeClassFrom(this.$wrapper,a.classNameWrapper,"",e.classNameStateUnchecked)):(this.$el.removeClass(this._checkedClass),this.$label.removeClass(this._checkedClass),this.$wrapper.removeClass(this._checkedClass),i.addClass(this.el,a.classNameFormElementCommon,"",e.classNameStateUnchecked),i.addClassTo(this.$label,a.classNameFormElementCommon,a.classNameLabel,e.classNameStateUnchecked),i.addClassTo(this.$wrapper,a.classNameWrapper,"",e.classNameStateUnchecked),i.removeClass(this.el,a.classNameFormElementCommon,"",e.classNameStateChecked),i.removeClassFrom(this.$label,a.classNameFormElementCommon,a.classNameLabel,e.classNameStateChecked),i.removeClassFrom(this.$wrapper,a.classNameWrapper,"",e.classNameStateChecked)),this.checked=t},e.defaultOption={checkedClass:""},e.classNameStateChecked="checked",e.classNameStateUnchecked="unchecked",e}(a);t.exports=n},function(t,e,s){"use strict";var o=this&&this.__extends||function(t,e){function s(){this.constructor=t}for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o]);t.prototype=null===e?Object.create(e):(s.prototype=e.prototype,new s)},i=s(12),a=function(t){function e(s,o){t.call(this,s),this.hasFocus=!1,this._elementized||s.querySelector&&(this._config=$.extend({},e.defaultOption,o),this._setClassName(),this._asignLabel(),this._setLabelText(),this._createWrapper(),this._createPsuedoElements(),this._bindEvents(),this.defaultValue=this.$el.val(),this.setDisabled(this.$el.prop("disabled")),this._onblur(),e.elements.push(this))}return o(e,t),e.prototype.setValue=function(t,e){void 0===e&&(e=!1);var s=""+t,o=this.$el.val();this.disabled||o===s||(this.$el.val(s),this._fireChangeEvent(e))},e.prototype.setDisabled=function(t){this.disabled=t,this.el.disabled=t,this.disabled?(i.addClass(this.el,e.classNameFormElementCommon,"",e.classNameStateDisabled),i.addClassTo(this.$label,e.classNameFormElementCommon,e.classNameLabel,e.classNameStateDisabled),i.addClassTo(this.$wrapper,e.classNameWrapper,"",e.classNameStateDisabled)):(i.removeClass(this.el,e.classNameFormElementCommon,"",e.classNameStateDisabled),i.removeClassFrom(this.$label,e.classNameFormElementCommon,e.classNameLabel,e.classNameStateDisabled),i.removeClassFrom(this.$wrapper,e.classNameWrapper,"",e.classNameStateDisabled))},e.prototype._setClassName=function(){this.addClass(e.classNameFormElementCommon)},e.prototype._createWrapper=function(){var t="<span />",s=$(t);i.addClassTo(s,e.classNameFormElementCommon),i.addClassTo(s,e.classNameWrapper),this.isWrappedByLabel?(this.$label.
11wrapAll(s),this.$wrapper=this.$label.parent("span")):this.hasLabelByForAttr?(this.$el.wrapAll(s),this.$wrapper=this.$el.parent("span")):(this.$el.add(this.$label).wrapAll(s),this.$wrapper=this.$el.parent("span"))},e.prototype._createPsuedoElements=function(){},e.prototype._bindEvents=function(){var t=this;this.$el.on("focus.bcFormElement",function(){t.disabled||t._onfocus()}),this.$el.on("blur.bcFormElement",function(){t._onblur()}),this.$el.on("change.bcFormElement",function(e,s){s&&s.isSilent?t._onSilentChange():t.trigger("change",null,t)})},e.prototype._onSilentChange=function(){},e.prototype._onfocus=function(){this.hasFocus=!0,i.addClass(this.el,e.classNameFormElementCommon,"",e.classNameStateFocus),i.addClassTo(this.$label,e.classNameFormElementCommon,e.classNameLabel,e.classNameStateFocus),i.addClassTo(this.$wrapper,e.classNameWrapper,"",e.classNameStateFocus),i.removeClass(this.el,e.classNameFormElementCommon,"",e.classNameStateBlur),i.removeClassFrom(this.$label,e.classNameFormElementCommon,e.classNameLabel,e.classNameStateBlur),i.removeClassFrom(this.$wrapper,e.classNameWrapper,"",e.classNameStateBlur)},e.prototype._onblur=function(){this.hasFocus=!1,i.addClass(this.el,e.classNameFormElementCommon,"",e.classNameStateBlur),i.addClassTo(this.$label,e.classNameFormElementCommon,e.classNameLabel,e.classNameStateBlur),i.addClassTo(this.$wrapper,e.classNameWrapper,"",e.classNameStateBlur),i.removeClass(this.el,e.classNameFormElementCommon,"",e.classNameStateFocus),i.removeClassFrom(this.$label,e.classNameFormElementCommon,e.classNameLabel,e.classNameStateFocus),i.removeClassFrom(this.$wrapper,e.classNameWrapper,"",e.classNameStateFocus)},e.prototype._fireChangeEvent=function(t){if(void 0===t&&(t=!1),t)this.$el.trigger("change.bcFormElement",[{isSilent:!0}]);else if("createEvent"in document){var e=document.createEvent("Event");e.initEvent("change",!0,!0),this.el.dispatchEvent(e)}else{var s=this.el;s.fireEvent("onchange")}},e.prototype._setLabelText=function(){var t=this;if(this._config.label)this.$label.prepend(this._config.label),this.labelBeforeText=this._config.label,this.labelAfterText="";else{var e=this.$label.contents(),s=$(),o=$(),i=!0;e.each(function(e,a){return a===t.$el[0]?void(i=!1):void(i?s=s.add($(a)):o=o.add($(a)))}),s.text(function(t,e){return $.trim(e)}),o.text(function(t,e){return $.trim(e)}),this.labelBeforeText=s.text()||this.$el.attr("title")||"",this.labelAfterText=o.text()||"",this.labelBeforeText&&this.$label.prepend(s),this.labelAfterText&&this.$label.append(o)}this.label=this.labelBeforeText+this.labelAfterText},e.prototype._asignLabel=function(){this.hasLabelByForAttr=!1;var t=this.$el.closest("label"),s=!!t.length;this.isWrappedByLabel=s,s||(t=$('label[for="'+this.id+'"]'),s=!!t.length,this.hasLabelByForAttr=s),this._config.autoLabeling&&!s&&(t=$("<"+this._config.labelTag.toLowerCase()+" />"),t.insertAfter(this.$el),this._config.labelClass&&t.addClass(this._config.labelClass),"label"===this._config.labelTag.toLowerCase()&&t.attr("for",this.id)),i.addClassTo(t,e.classNameFormElementCommon),i.addClassTo(t,e.classNameFormElementCommon,e.classNameLabel),this.$label=t},e.defaultOption={label:"",labelTag:"label",labelClass:"",autoLabeling:!0},e.classNameFormElementCommon="form-element",e.classNameWrapper="wrapper",e.classNameLabel="label",e.classNameStateFocus="focus",e.classNameStateBlur="blur",e.classNameStateDisabled="disabled",e.elements=[],e}(i);t.exports=a},function(t,e,s){"use strict";var o=this&&this.__extends||function(t,e){function s(){this.constructor=t}for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o]);t.prototype=null===e?Object.create(e):(s.prototype=e.prototype,new s)},i=s(12),a=s(17),n=s(16),r=function(t){function e(s,o){t.call(this,s,o),this._elementized||s.querySelector&&(this.addClass(e.classNameCheckbox),i.addClassTo(this.$label,e.classNameCheckbox,a.classNameLabel),i.addClassTo(this.$wrapper,e.classNameCheckbox+"-"+a.classNameWrapper))}return o(e,t),e.classNameCheckbox="form-checkbox",e}(n);t.exports=r},function(t,e,s){"use strict";var o=this&&this.__extends||function(t,e){function s(){this.constructor=t}for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o]);t.prototype=null===e?Object.create(e):(s.prototype=e.prototype,new s)},i=s(12),a=s(9),n=function(t){function e(s,o){if(t.call(this,s),!this._elementized&&s.querySelector)if("google"in window&&google.maps)this.$el.addClass(e.className),this.mapOption=$.extend({},o),this._init(),e.maps.push(this),this.$el.data(e.className,this);else if("console"in window)return void console.warn('ReferenceError: "//maps.google.com/maps/api/js" を先に読み込む必要があります。')}return o(e,t),e.getLatLngByAddress=function(t,e){var s=new google.maps.Geocoder;s.geocode({address:t},function(s,o){switch(o){case google.maps.GeocoderStatus.OK:var i=s[0].geometry.location.lat(),a=s[0].geometry.location.lng();e(i,a);break;case google.maps.GeocoderStatus.INVALID_REQUEST:case google.maps.GeocoderStatus.ZERO_RESULTS:console&&console.warn&&console.warn('ReferenceError: "'+t+'は不正な住所だったため結果を返すことができませんでした。"');break;case google.maps.GeocoderStatus.OVER_QUERY_LIMIT:console&&console.warn&&console.warn('Error: "リクエスト数の上限を超えました。'+t+'は処理されません。"');break;case google.maps.GeocoderStatus.ERROR:case google.maps.GeocoderStatus.UNKNOWN_ERROR:console&&console.warn&&console.warn('Error: "エラーが発生しました。'+t+'は処理されません。"')}})},e.prototype.reload=function(t){this.mapOption=t?$.extend({},t):this.mapOption,this._init()},e.prototype._init=function(){var t=this;this.mapOption=$.extend(this.mapOption,{zoom:this.$el.data("zoom"),fitBounds:this.$el.data("fit-bounds")}),this.markerBounds=new google.maps.LatLngBounds;var s=this.$el.data("lat")||e.defaultLat,o=this.$el.data("lng")||e.defaultLng,i=this.$el.data("address")||"";i?e.getLatLngByAddress(i,function(e,s){t._render(e,s)}):this._render(s,o)},e.prototype._render=function(t,e){var s=this;this.$coordinates=this.$coordinates||this.$el.find("[data-lat][data-lng], [data-address]").detach(),this.$coordinates.length<=0&&(this.$coordinates=this.$el);var o=[];this.$coordinates.each(function(t,e){var i=new r(e,s);o.push(i)}),this.mapOption=$.extend({zoom:14,mapTypeControlOptions:{mapTypeIds:[google.maps.MapTypeId.HYBRID,google.maps.MapTypeId.ROADMAP]},scrollwheel:!1,center:new google.maps.LatLng(t,e),styles:null},this.mapOption),this.info=new google.maps.InfoWindow({disableAutoPan:!0}),this.gmap=new google.maps.Map(this.el,$.extend({},this.mapOption,{fitBounds:google.maps.Map.prototype.fitBounds})),$.each(o,function(t,e){e.markTo(function(t){s.mapOption.fitBounds&&(s.markerBounds.extend(t.position),s.gmap.fitBounds(s.markerBounds))})})},e.defaultLat=35.681382,e.defaultLng=139.766084,e.className="-bc-map-element",e.maps=[],e}(i),r=function(){function t(t,e){var s=this;this.icon=null,this.el=t,this.$el=$(t),this._map=e;var o=this.$el.data("address"),i=$.Deferred();o?n.getLatLngByAddress(o,function(t,e){s.lat=t,s.lng=e,s.position=new google.maps.LatLng(s.lat,s.lng),i.resolve()}):(this.lat=+this.$el.data("lat"),this.lng=+this.$el.data("lng"),this.position=new google.maps.LatLng(this.lat,this.lng),i.resolve()),this._promiseLatLng=i.promise()}return t.prototype.markTo=function(t){var e=this;this._promiseLatLng.done(function(){e._markTo(),t&&t(e)})},t.prototype.openInfoWindow=function(){this._map.info.setContent(this.el),this._map.info.open(this._map.gmap,this.marker),this.marker.setZIndex(google.maps.Marker.MAX_ZINDEX+1);var t=this._map.info.getContent(),e=this._map.gmap.getProjection(),s=e.fromLatLngToPoint(this.position),o=Math.pow(2,this._map.gmap.getZoom()),i=$(t).height(),a=(s.y*o-i)/o,n=new google.maps.Point(s.x,a),r=e.fromPointToLatLng(n);this._map.gmap.panTo(r)},t.prototype._markTo=function(){this.title=this.$el.attr("title")||this.$el.data("title")||this.$el.find("h1,h2,h3,h4,h5,h6").text()||null;var t=this.$el.data("icon"),e=this.$el.data("iconSize"),s=this.$el.data("iconHref"),o="_blank"===this.$el.data("iconTarget")||!1;if(t&&(this.icon={},this.icon.url=t,e)){var i=(""+e).split(/\s+/),n=+i[0]||null;if(n){var r=+i[1]||n,l=new google.maps.Size(n,r);this.icon.size=l,this.icon.scaledSize=l}}this.marker=new google.maps.Marker({position:this.position,title:this.title,icon:this.icon,map:this._map.gmap}),s?google.maps.event.addListener(this.marker,"click",a.jumpTo.bind(null,s,o)):this._map.$coordinates!==this._map.$el&&google.maps.event.addListener(this.marker,"click",this.openInfoWindow.bind(this))},t}();t.exports=n},function(t,e,s){"use strict";var o=this&&this.__extends||function(t,e){function s(){this.constructor=t}for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o]);t.prototype=null===e?Object.create(e):(s.prototype=e.prototype,new s)},i=s(12),a=s(17),n=s(16),r=s(21),l=function(t){function e(s,o){t.call(this,s,o),this._elementized||s.querySelector&&(this.addClass(e.classNameRadio),i.addClassTo(this.$label,e.classNameRadio,a.classNameLabel),i.addClassTo(this.$wrapper,e.classNameRadio+"-"+a.classNameWrapper),r.groups[this.name]||(r.groups[this.name]=new r(this.name)),r.groups[this.name].add(this))}return o(e,t),e.prototype._onchenge=function(){t.prototype._onchenge.call(this),r.groups[this.name].update(this)},e.classNameRadio="form-radio",e}(n);t.exports=l},function(t,e){"use strict";var s=function(){function t(t){this._radioButtons=[],this.name=t}return t.prototype.add=function(t){for(var e=0,s=this._radioButtons;e<s.length;e++){var o=s[e];if(o===t)return}this._radioButtons.push(t)},t.prototype.update=function(t){for(var e=0,s=this._radioButtons;e<s.length;e++){var o=s[e];o!==t&&o.update()}},t.groups={},t}();t.exports=s},function(t,e,s){"use strict";var o=s(23),i=function(){function t(){this.timer=new o}return t.prototype.to=function(e,s){var i=this;this.options=s||{};var a=this.options.offset||0;if(this.options.wheelCancel&&$(document).on("wheel",function(){i.isScroll&&(i._finish(),$.isFunction(i.options.onScrollCancel)&&i.options.onScrollCancel.call(i,new $.Event("scrollcancel")))}),"number"==typeof e)a+=e||0,this.targetX=0,this.targetY=a;else{if(!e){var n=$(window.location.hash);return n.length&&o.wait(t.delayWhenURLHashTarget,function(){window.scrollTo(0,0),i.to(n,{offset:a})}),this}var r=$(e);
11if(!r.length)return this;for(var l=r[0],c=0,h=0;l;)c+=l.offsetLeft,h+=l.offsetTop,l=l.offsetParent;var p=document.documentElement.clientWidth,u=document.documentElement.clientHeight,d=document.documentElement.scrollWidth,m=document.documentElement.scrollHeight,f=Math.max(p,d),v=Math.max(u,m);this.targetX=Math.min(c,f)+a,this.targetY=Math.min(h,v)+a}return this.isScroll||(this.isScroll=!0,$.isFunction(this.options.onScrollStart)&&this.options.onScrollStart.call(this,new $.Event("scrollstart")),
12this._progress()),this},t.prototype._progress=function(){var e=this._getX(),s=this._getY(),o=(this.targetX-e)/t.speed,i=(this.targetY-s)/t.speed;if(Math.abs(o)<1&&Math.abs(i)<1||this.prevX===e&&this.prevY===s)window.scrollTo(this.targetX,this.targetY),this._finish(),$.isFunction(this.options.onScrollEnd)&&this.options.onScrollEnd.call(this,new $.Event("scrollend"));else{var a=Math.floor(e+o),n=Math.floor(s+i);window.scrollTo(a,n),this.prevX=e,this.prevY=s,$.isFunction(this.options.onScrollProgress)&&this.options.onScrollProgress.call(this,new $.Event("scrollprogress")),this.timer.wait(t.interval,this._progress,this)}},t.prototype._getX=function(){return void 0!==window.pageXOffset?window.pageXOffset:document.documentElement.scrollLeft||document.body.scrollLeft},t.prototype._getY=function(){return void 0!==window.pageYOffset?window.pageYOffset:document.documentElement.scrollTop||document.body.scrollTop},t.prototype._finish=function(){this.isScroll=!1,this.prevX=null,this.prevY=null,this.timer.stop()},t.speed=4,t.interval=20,t.delayWhenURLHashTarget=30,t}();t.exports=i},function(t,e,s){"use strict";var o=this&&this.__extends||function(t,e){function s(){this.constructor=t}for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o]);t.prototype=null===e?Object.create(e):(s.prototype=e.prototype,new s)},i=s(7),a=s(6),n=function(t){function e(){t.call(this),this.interval=13,this._timerId=null,this.now()}return o(e,t),e.wait=function(t,s,o){return(new e).wait(t,s,o)},e.prototype.valueOf=function(){return this._currentTime.valueOf()},e.prototype.now=function(){return this._currentTime=new Date,this.valueOf()},e.prototype.start=function(t){var e=this;void 0===t&&(t=1/0);var s=this.now();clearTimeout(this._timerId);var o=function(t){e._timerId=setTimeout(function(){var a=e.now(),n=a-s;if(n<t){o(t);var r=new i("progress");e.trigger(r,[a,s,e],e),r.isDefaultPrevented()&&e.stop()}else e.stop()},e.interval)};return o(t),this},e.prototype.stop=function(){var t=this.now(),e=new i("stop");return this.trigger(e,[t,this._timerId,this],this),e.isDefaultPrevented()||(clearTimeout(this._timerId),this._timerId=null),this},e.prototype.wait=function(t,e,s){var o=this;s=s||this;var i=this.now();return clearTimeout(this._timerId),this._timerId=setTimeout(function(){o.stop();var t=o.now();e.call(s,t,i,s)},t),this},e}(a);t.exports=n},function(t,e,s){"use strict";var o=this&&this.__extends||function(t,e){function s(){this.constructor=t}for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o]);t.prototype=null===e?Object.create(e):(s.prototype=e.prototype,new s)},i=s(12),a=s(17),n=s(9),r=function(t){function e(s,o){t.call(this,s,$.extend({},e.defaultOption,o)),this._elementized||s.querySelector&&this._update()}return o(e,t),e.prototype._setClassName=function(){t.prototype._setClassName.call(this),this.addClass(e.classNameSelect)},e.prototype._createWrapper=function(){t.prototype._createWrapper.call(this),i.addClassTo(this.$wrapper,e.classNameSelect+"-"+a.classNameWrapper)},e.prototype._createPsuedoElements=function(){var t=this;this.$pseudo=$("<a />"),this.$pseudo.attr("href","#"),this.$pseudo.insertAfter(this.$el),i.addClassTo(this.$pseudo,a.classNameFormElementCommon),i.addClassTo(this.$pseudo,e.classNamePseudoSelect),this.$selected=$("<span />"),this.$selected.appendTo(this.$pseudo),i.addClassTo(this.$selected,a.classNameFormElementCommon),i.addClassTo(this.$selected,e.classNamePseudoSelect,e.classNamePseudoSelectedDisplay),this._config.useDefaultOptionList||(this.$options=$("<ul />"),this.$options.appendTo(this.$pseudo),i.addClassTo(this.$options,a.classNameFormElementCommon),i.addClassTo(this.$options,e.classNamePseudoSelect,e.classNameSelectOptionList),this.$el.find("option").each(function(s,o){var n=$(o),r=n.val(),l=n.text(),c=$("<li />");c.appendTo(t.$options),c.data("value",r),c.text(l),i.addClassTo(c,a.classNameFormElementCommon),i.addClassTo(c,e.classNameSelectOptionList,e.classNameSelectOption)})),n.spec.isTouchable&&(n.spec.ua.iPhone||n.spec.ua.iPod?(this.addClass(e.classNameOsIOs),i.addClassTo(this.$wrapper,e.classNameOsIOs),i.addClassTo(this.$label,e.classNameOsIOs)):n.spec.ua.android&&(this.addClass(e.classNameOsAndroid),i.addClassTo(this.$wrapper,e.classNameOsAndroid),i.addClassTo(this.$label,e.classNameOsAndroid))),this._config.useDefaultOptionList&&(this.addClass(e.classNameUseDefaultOptionList),i.addClassTo(this.$wrapper,e.classNameUseDefaultOptionList),i.addClassTo(this.$label,e.classNameUseDefaultOptionList))},e.prototype._bindEvents=function(){var e=this;t.prototype._bindEvents.call(this),this.$el.on("change.bcSelect",function(){e._update()}),this.$pseudo.on("click.bcSelect","li",function(t){var s=$(t.target),o=s.index();e._onblur(),e.setIndex(o),t.stopPropagation(),t.preventDefault()}),this.$pseudo.on("click.bcSelect",function(t){t.preventDefault()}),this._config.useDefaultOptionList?this.$pseudo.removeAttr("href"):this._psuedoFocusEvent()},e.prototype._onSilentChange=function(){this._update()},e.prototype.update=function(){return this._update(),this},e.prototype.setValue=function(t){var e=""+t,s=this.$el.find('option[value="'+e+'"]');s.length&&!s.prop("selected")&&(s.prop("selected",!0),this._fireChangeEvent())},e.prototype.setIndex=function(t,e){void 0===e&&(e=!1);var s=this.$el.find("option").eq(t);!s.length||s.prop("selected")||s.prop("disabled")||(s.prop("selected",!0),this._fireChangeEvent(e))},e.prototype.getIndex=function(){var t=0;return this.$el.find("option").each(function(e,s){var o=$(s);o.prop("selected")&&(t=o.index())}),t},e.prototype.next=function(t){var e=this.getIndex(),s=this.$el.find("option").length,o=e+1;this.setIndex(Math.min(o,s),t)},e.prototype.prev=function(t){var e=this.getIndex(),s=e-1;this.setIndex(Math.max(s,0),t)},e.prototype.setDisabled=function(e){t.prototype.setDisabled.call(this,e),this.disabled?this.$pseudo.attr("tabindex",-1):this.$pseudo.removeAttr("tabindex")},e.prototype._onfocus=function(){this.hasFocus||($(document).triggerHandler("click.bcSelect"),t.prototype._onfocus.call(this),i.addClassTo(this.$pseudo,e.classNamePseudoSelect,"",a.classNameStateFocus),i.removeClassFrom(this.$pseudo,e.classNamePseudoSelect,"",a.classNameStateBlur),this._scrollToSelectedPosition(),this._currentIndex=this.getIndex())}
12,e.prototype._onblur=function(){this.$pseudo&&(t.prototype._onblur.call(this),i.addClassTo(this.$pseudo,e.classNamePseudoSelect,"",a.classNameStateBlur),i.removeClassFrom(this.$pseudo,e.classNamePseudoSelect,"",a.classNameStateFocus))},e.prototype._update=function(){var t,s=this;this.$options&&(t=this.$options.find("li")),this.$el.find("option").each(function(o,a){var n=$(a),r=n.prop("selected");if(r&&s.$selected.text(n.text()),s.$options){var l=n.prop("disabled"),c=t.eq(o);c.attr("aria-selected",""+r),c.attr("aria-disabled",""+l),r?(i.addClassTo(c,e.classNameSelectOptionList,e.classNameSelectOption,e.classNameStateSelected),i.removeClassFrom(c,e.classNameSelectOptionList,e.classNameSelectOption,e.classNameStateUnselected)):(i.addClassTo(c,e.classNameSelectOptionList,e.classNameSelectOption,e.classNameStateUnselected),i.removeClassFrom(c,e.classNameSelectOptionList,e.classNameSelectOption,e.classNameStateSelected)),l?i.addClassTo(c,e.classNameSelectOptionList,e.classNameSelectOption,e.classNameStateDisabled):i.removeClassFrom(c,e.classNameSelectOptionList,e.classNameSelectOption,e.classNameStateDisabled)}})},e.prototype._scrollToSelectedPosition=function(){if(this.$options){var t,e=this.$options.find("li");this.$el.find("option").each(function(s,o){var i=$(o),a=i.prop("selected");a&&(t=e.eq(s))}),this.$options.scrollTop(0);var s=t.offset(),o=this.$options.offset();s&&o&&this.$options.scrollTop(s.top-o.top)}},e.prototype._psuedoFocusEvent=function(){var t=this;this.$el.off("focus.bcFormElement"),this.$el.off("blur.bcFormElement"),this.$el.on("focus.bcSelect",function(e){t.disabled||t.$pseudo.focus(),e.stopPropagation(),e.preventDefault()}),$(document).on("click.bcSelect",function(e){t._onblur()}),$(document).on("focusin",function(e){t._onblur()}),this.$pseudo.on("focus.bcSelect",function(e){t.disabled?t.$pseudo.blur():t._onfocus(),e.stopPropagation()}).on("click.bcSelect",function(e){t.disabled||t._onfocus(),e.stopPropagation(),e.preventDefault()}),this.$label.on("click.bcSelect focus.bcSelect",function(t){t.stopPropagation()}),this._bindKeybordEvent()},e.prototype._bindKeybordEvent=function(){var t=this;$(document).on("keydown",function(e){if(t.hasFocus)switch(e.keyCode){case 38:t.prev(!0),t._scrollToSelectedPosition(),e.preventDefault();break;case 40:t.next(!0),t._scrollToSelectedPosition(),e.preventDefault();break;case 13:t._currentIndex!==t.getIndex()&&t._fireChangeEvent(),t._onblur(),e.preventDefault()}})},e.defaultOption={useDefaultOptionList:n.spec.isTouchable&&n.spec.ua.iPhone||n.spec.ua.iPod||n.spec.ua.android},e.classNameSelect="form-select",e.classNamePseudoSelect="pseudo-select",e.classNamePseudoSelectedDisplay="selected-display",e.classNameSelectOptionList="option-list",e.classNameSelectOption="item",e.classNameOsIOs="os-i-os",e.classNameOsAndroid="os-android",e.classNameUseDefaultOptionList="use-default-option-list",e.classNameStateSelected="selected",e.classNameStateUnselected="unselected",e}(a);t.exports=r},function(t,e,s){"use strict";var o=this&&this.__extends||function(t,e){function s(){this.constructor=t}for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o]);t.prototype=null===e?Object.create(e):(s.prototype=e.prototype,new s)},i=s(6),a=s(23),n=function(t){function e(e){t.call(this),this._tasks=[],this._currentTaskIndex=0,this._iterator=0,this._promise=null,this._resolver=null,this._waitingTime=0,this._waitTimer=new a,this._isStop=!0;for(var s=0,o=e;s<o.length;s++){var i=o[s];this._tasks.push(new r(i,this))}}return o(e,t),e.prototype.act=function(t,e){var s=this;void 0===e&&(e=!1),this._isStop=!1,this.trigger("beforeact");var o=this._tasks[this._currentTaskIndex],i=o.act(t);return this._setPromiseFrom(i),this._promise.done(function(t){s._reset(),s._currentTaskIndex+=1,s._iterator+=1,!s._isStop&&(s._currentTaskIndex<s._tasks.length||e)?(s._currentTaskIndex>=s._tasks.length&&e&&(s._currentTaskIndex=0),s.act(t,e)):s.trigger("stop")}).fail(function(){s._reset(),s.trigger("exit"),s.trigger("stop")}),this},e.prototype.loop=function(t){return this.act(t,!0)},e.prototype.exit=function(){return this._isStop=!0,this._resolver&&this._resolver.reject(),this},e.prototype.wait=function(t){this._waitingTime=t},e.prototype.getCount=function(){return this._iterator},e.prototype._setPromiseFrom=function(t){var e=this;this._isJQueryPromiseLikeObject(t)?this._promise=t.promise():(this._resolver=$.Deferred(),this._promise=this._resolver.promise(),this._waitTimer.wait(this._waitingTime,function(){e._resolver.resolve(t)}),this._waitTimer.on("cencel",function(){e._resolver.reject(t)}))},e.prototype._reset=function(){this._waitTimer.stop(),this._promise=null,this._resolver=null,this._waitingTime=0},e.prototype._isJQueryPromiseLikeObject=function(t){var e=["always","done","fail","pipe","progress","promise","state","then"];if(t instanceof jQuery)return!!t.promise;for(t=Object(t);e.length;){var s=e.shift();if(!(s in t&&$.isFunction(t[s])))return!1}return!0},e}(i),r=function(){function t(t,e){this._func=t,this._sequencer=e}return t.prototype.act=function(t){var e=this._func.call(this._sequencer,this._sequencer.getCount(),t);return e},t}();t.exports=n},function(t,e,s){"use strict";var o=this&&this.__extends||function(t,e){function s(){this.constructor=t}for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o]);t.prototype=null===e?Object.create(e):(s.prototype=e.prototype,new s)},i=s(12),a=s(17),n=function(t){function e(s,o){t.call(this,s,$.extend({},e.defaultOption,o)),this.placeholder="",this._elementized||s.querySelector&&(this.placeholder=this.$el.attr("placeholder")||"",this.hasPlaceholder=!!this.placeholder,this._update())}return o(e,t),e.prototype._setClassName=function(){t.prototype._setClassName.call(this),this.addClass(e.classNameTextField)},e.prototype._createWrapper=function(){t.prototype._createWrapper.call(this),i.addClassTo(this.$wrapper,e.classNameTextField+"-"+a.classNameWrapper)},e.prototype._bindEvents=function(){var s=this;t.prototype._bindEvents.call(this),$(document).on("keyup.bcTextField-"+this.id,function(t){s.hasFocus&&s._update()}),e.supportPlaceholder||(this.$el.on("focus.bcTextField click.bcTextField",function(){s._equalPlaceholder()&&s._msCaretMoveToTop()}),$(document).on("keydown.bcTextField-"+this.id,function(t){s.hasFocus&&s._equalPlaceholder()&&s.$el.val("")}
12))},e.prototype._update=function(){var t=this.$el.val()||"",s=!t;e.supportPlaceholder?s?this._setStateUninputted():this._setStateInputted():this._equalPlaceholder()?this._setStateUninputted():s?(this._setStateUninputted(),this._setPlaceholderValue()):this._setStateInputted()},e.prototype._setStateInputted=function(){this.isEmpty=!1,i.removeClass(this.el,a.classNameFormElementCommon,"",e.classNameStateUninput),i.removeClassFrom(this.$label,a.classNameFormElementCommon,a.classNameLabel,e.classNameStateUninput),i.removeClassFrom(this.$wrapper,a.classNameWrapper,"",e.classNameStateUninput)},e.prototype._setStateUninputted=function(){this.isEmpty=!0,i.addClass(this.el,a.classNameFormElementCommon,"",e.classNameStateUninput),i.addClassTo(this.$label,a.classNameFormElementCommon,a.classNameLabel,e.classNameStateUninput),i.addClassTo(this.$wrapper,a.classNameWrapper,"",e.classNameStateUninput)},e.prototype._equalPlaceholder=function(){var t=this.$el.val()||"";return this.placeholder===t},e.prototype._setPlaceholderValue=function(){this.$el.val(this.placeholder),this._msCaretMoveToTop()},e.prototype._msCaretMoveToTop=function(){var t=this.el,e=t.createTextRange();e.collapse(),e.moveStart("character",0),e.moveEnd("character",0),e.select()},e.defaultOption={},e.classNameTextField="form-text-field",e.classNameStateUninput="uninput",e.supportPlaceholder=void 0!==$("<input />").prop("placeholder"),e}(a);t.exports=n},function(t,e){"use strict";var s=function(){function t(){}return t.remove=function(t,e){return t.splice(e,1),t},t.shuffle=function(t){for(var e=t.concat(),s=e.length,o=s-1;o>=0;o--){var i=Math.floor(Math.random()*(o+1)),a=e[o];e[o]=e[i],e[i]=a}return e},t}();t.exports=s},function(t,e,s){"use strict";var o=this&&this.__extends||function(t,e){function s(){this.constructor=t}for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o]);t.prototype=null===e?Object.create(e):(s.prototype=e.prototype,new s)},i=s(27),a=s(12),n=s(9),r=function(t){function e(s,o){t.call(this,s),this.isEmbeded=!1,this._elementized||s.querySelector&&this._init(o)&&(e.movies.push(this),this.$el.addClass(e.className),this.$el.data(e.className,this))}return o(e,t),e.getURI=function(t,s){var o=$.param(s);return""+n.apiScheme+e.PLAYER_URL+t+"?"+o},e.getPosterImage=function(t,e){void 0===e&&(e=!1);var s=e?"//i.ytimg.com/vi/":"//img.youtube.com/vi/",o=e?"/maxresdefault.jpg":"/0.jpg";return""+n.apiScheme+s+t+o},e.prototype.reload=function(t){this._init(t)},e.prototype.mute=function(){this.player.mute(),this._isMuted=!0,this.trigger("onmute",[this.player])},e.prototype.unMute=function(){this.player.unMute(),this._isMuted=!1,this.trigger("onunmute",[this.player])},e.prototype.muteController=function(t,e){var s=this,o=$(t),i={eventType:"click",mutedClass:"is-muted",unmutedClass:"is-unmuted",baseClass:"youtube-mute-ctrl"},n=$.extend(i,e);a.addClassTo(o,n.baseClass);var r=function(){s._isMuted?(a.addClassTo(o,n.baseClass,"",n.mutedClass),a.removeClassFrom(o,n.baseClass,"",n.unmutedClass)):(a.addClassTo(o,n.baseClass,"",n.unmutedClass),a.removeClassFrom(o,n.baseClass,"",n.mutedClass))},l=function(){o.on(n.eventType,function(t){s._isMuted?s.unMute():s.mute(),r()}),r()};this.on("onmute onunmute",function(){r()}),this.isEmbeded?l():this.on("embeded",function(t,e){s.off(t.type),l()})},e.prototype._init=function(t){this.movieOption=this.mergeOptions({rel:!1,autoplay:!0,stopOnInactive:!1,controls:!1,loop:!0,showinfo:!1,mute:!1,id:"",width:400,height:300,index:0,poster:null,posterHighQuality:!1,startSeconds:0,suggestedQuality:"default",shuffle:!1,preEmbed:!0},t),n.spec.ua.iOS&&(this.movieOption.autoplay=!1,this.movieOption.preEmbed=!0);var s=this.movieOption.id.split(/\s*,\s*/);this.movieOption.shuffle&&(s=i.shuffle(s));var o=s[this.movieOption.index],a={version:3,rel:this.movieOption.rel?1:0,autoplay:0,controls:this.movieOption.controls?1:0,disablekb:1,iv_load_policy:3,loop:this.movieOption.loop?1:0,modestbranding:1,showinfo:this.movieOption.showinfo?1:0,wmode:"transparent",enablejsapi:1};return this.src=e.getURI(o,a),this.movieId=s,this.playerDomId=this.id+"-Player",null===this.movieOption.poster||this.movieOption.autoplay?(this._createPlayerFrame(),this._loadYouTubeAPI()):this._createPosterImage(o),!0},e.prototype._createPosterImage=function(t){var s=this,o=$('<div class="-bc-element -bc-youtube-pseudo-poster-element" />');if(this.movieOption.width&&o.width(this.movieOption.width),this.movieOption.height&&o.height(this.movieOption.height),o.css({position:"absolute",top:0,left:0,pointerEvents:n.spec.ua.iOS?"none":"all",curs
12or:"pointer"}),/^@contents?$/i.test(this.movieOption.poster)){var i=this.$el.children().detach();this.movieOption.preEmbed&&(this._createPlayerFrame(),this._loadYouTubeAPI()),o.append(i),o.appendTo(this.$el)}else""===this.movieOption.poster&&(this.movieOption.poster=e.getPosterImage(t,this.movieOption.posterHighQuality)),this.movieOption.preEmbed?(this.$el.empty(),this._createPlayerFrame(),this._loadYouTubeAPI()):o.css({position:"relative"}),o.appendTo(this.$el),this.movieOption.width&&o.width(this.movieOption.width),this.movieOption.height&&o.height(this.movieOption.height),o.css({backgroundImage:'url("'+this.movieOption.poster+'")',backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center center",backgroundColor:"#000"});if(this.movieOption.preEmbed)o.on("click",function(){s.player&&(o.off("click"),s._$posterContainer.addClass("-bc-youtube-pseudo-poster-element--loading"),s.player.playVideo())});else{if(o.css({pointerEvents:"all"}),/^@contents?$/i.test(this.movieOption.poster)){var i=this.$el.children().detach();o.append(i),o.appendTo(this.$el)}o.on("click",function(){s.movieOption.autoplay=!0,s._createPlayerFrame(),s._loadYouTubeAPI()})}this._$posterContainer=o},e.prototype._createPlayerFrame=function(){var t=$('<iframe class="-bc-youtube-player-frame-element" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen />');t.prop({src:this.src,id:this.playerDomId}),t.css({position:"relative",display:"block",width:"100%",height:"100%"}),t.prependTo(this.$el),this.movieOption.width&&(t.width(this.movieOption.width),t.data("width",this.movieOption.width)),this.movieOption.height&&(t.height(this.movieOption.height),t.data("height",this.movieOption.height)),this._$frame=t},e.prototype._loadYouTubeAPI=function(){var t=this;"YT"in window&&YT.Player||$.getScript(""+n.apiScheme+e.API_URL);var s=setInterval(function(){!t.player&&"YT"in window&&YT.Player&&t._createPlayer(t.playerDomId),t.player&&t.player.pauseVideo&&t.player.playVideo&&(clearInterval(s),t._onEmbeded())},300)},e.prototype._createPlayer=function(t){var e=this;this.player=new YT.Player(t,{events:{onStateChange:function(t){switch(t.data){case-1:e.trigger("unstarted",[e.player]);var s=e.player.getPlaylistIndex();e.currentCueIndex!==s&&e.trigger("changecue",[e.player]),e.currentCueIndex=s;break;case YT.PlayerState.BUFFERING:e._$posterContainer&&e._$posterContainer.addClass("-bc-youtube-pseudo-poster-element--loading"),e.trigger("buffering",[e.player]);break;case YT.PlayerState.CUED:e.trigger("cued",[e.player]);break;case YT.PlayerState.ENDED:e.trigger("ended",[e.player]),e.movieId.length>1&&e.movieOption.loop&&e.currentCueIndex===e.movieId.length-1?e.player.playVideoAt(0):e.movieOption.loop&&e.player.playVideo();break;case YT.PlayerState.PAUSED:e.trigger("paused",[e.player]);break;case YT.PlayerState.PLAYING:e._hidePoster(),e.trigger("playing",[e.player]),e.currentCueIndex=e.player.getPlaylistIndex();break;default:"console"in window&&console.warn("YouTube Player state is unknown.")}}}})},e.prototype._onEmbeded=function(){var t=this;if(this.isEmbeded=!0,this._isMuted=this.player.isMuted(),this.movieOption.mute&&this.mute(),this.movieOption.stopOnInactive&&$(window).on("blur",function(){t.player.pauseVideo()}).on("focus",function(){t.player.playVideo()}),this.movieId.length>=2){var e=this.player;this.movieOption.autoplay?e.loadPlaylist(this.movieId,this.movieOption.index,this.movieOption.startSeconds,this.movieOption.suggestedQuality):e.cuePlaylist(this.movieId,this.movieOption.index,this.movieOption.startSeconds,this.movieOption.suggestedQuality)}else this.movieOption.autoplay&&this.player.playVideo();this.$el.trigger("embeddedyoutubeplay",[this.player]),this.trigger("embeded",[this.player])},e.prototype._hidePoster=function(){this._$posterContainer&&(this._$posterContainer.removeClass("-bc-youtube-pseudo-poster-element--loading"),this._$posterContainer.detach())},e.className="-bc-youtube-element",e.PLAYER_URL="//www.youtube.com/embed/",e.API_URL="//www.youtube.com/player_api",e.movies=[],e}(a);t.exports=r},function(t,e,s){"use strict";var o=s(15),i=s(23),a=s(9),n=s(12),r=s(4),l=s(14),c=s(18),h=s(20),p=s(24),u=s(22),d=s(19),m=s(28),f=function(){function t(){}return t.bcScrollTo=function(t,e){var s=new u;s.to(t,e)}
12,t.prototype.bcBackground=function(t){var e=$(this);return e.each(function(e,s){new l(s,t)})},t.prototype.bcBoxAlignHeight=function(t,e,s){void 0===t&&(t=0);var o=$(this);if("string"==typeof t){var i=t;switch(i){case"destroy":var a=o.data(r.DATA_KEY);a.destroy()}}else{var n=t;if(e){var l=o.find(e);l.length&&o.each(function(){var t=$(this).find(e);new r(t,n,s)})}else new r(o,n,s)}return o},t.prototype.bcBoxLink=function(){return $(this).on("click",function(t){var e=$(this),s=e.find("a, area").eq(0),o=s.prop("href");if(s.length&&o){var i="_blank"===s.prop("target");a.jumpTo(o,i),t.preventDefault()}})},t.prototype.bcCheckbox=function(t){var e=$(this);return e.each(function(e,s){"INPUT"===s.nodeName?new c(s,t):"console"in window&&console.warn("TypeError: A Node is not HTMLInputElement")})},t.prototype.bcRadio=function(t){var e=$(this);return e.each(function(e,s){"INPUT"===s.nodeName?new h(s,t):"console"in window&&console.warn("TypeError: A Node is not HTMLInputElement")})},t.prototype.bcSelect=function(t){var e=$(this);return e.each(function(e,s){var o=$(s);if("string"==typeof t)switch(t){case"update":var i=o.data("bc-element");i.update()}else"SELECT"===s.nodeName?new p(s,t):"console"in window&&console.warn("TypeError: A Node is not HTMLSelectElement")})},t.prototype.bcImageLoaded=function(t,e){var s=$(this);return s.each(function(s,o){var i=$(o),a=[],n=i.filter("img").add(i.find("img"));n.length?(n.hide(),n.each(function(){var t=$.Deferred(),e=new Image;e.onload=function(){t.resolve(),e.onload=null,e=null},e.onabort=e.onerror=function(s){t.reject(s),e.onload=null,e=null},e.src=this.src,a.push(t.promise())}),$.when.apply($,a).done(function(){n.show(),t.call(o)}).fail(function(t){e&&e.call(o,t)})):t.call(o)})},t.prototype.bcKeepAspectRatio=function(){var t=$(window),e=$(this);return e.each(function(e,s){var o=$(s),i=+o.data("width"),a=+o.data("height"),n=i/a;t.on("resize",function(){var t=o.width();o.css({width:"100%",height:t/n})}).trigger("resize")}),i.wait(30,function(){t.trigger("resize")}),e},t.prototype.bcScrollTo=function(t){var e=$(this);return e.on("click",function(e){var s=$(this),o=s.attr("href"),i=new u;if(o){if(t&&$.isPlainObject(t.keywords))for(var a in t.keywords)if(t.keywords.hasOwnProperty(a)){var n=t.keywords[a];if(a===o)return i.to(n,t),void e.preventDefault()}var r=s.prop("href"),l=location.protocol+"//"+location.host+location.pathname+location.search;if(o=r.replace(l,""),"#top"===o)return i.to(0,t),void e.preventDefault();try{var n=$(o);if(n.length)return i.to(n,t),void e.preventDefault()}catch(t){}}})},t.prototype.bcSplitList=function(t,e){var s=$(this),i="splited-list",a="nth",r="item",l=$.extend({dataKey:"-bc-split-list-index",splitChildren:!0},e);return s.each(function(e,s){var c,h=$(s),p=h.find(">ul");l.splitChildren?(c=p.find("li").detach(),c.find("ul").remove()):c=p.find(">li").detach();for(var u=c.length,d=o.split(u,t),m=c.toArray(),f=0;f<t;f++){var v=d[f],g=$("<ul></ul>");n.addClassTo(g,i),n.addClassTo(g,i,"",a+t),g.appendTo(h);for(var _=0;_<v;_++){var y=$(m.shift());y.appendTo(g),y.data(l.dataKey,f),n.addClassTo(y,i,r),n.addClassTo(y,i,r,a+f)}}p.remove()}),s},t.prototype.bcWink=function(t){var e=$(this),s=$.extend({close:50,open:200,opacity:.4,target:null,stopOnTouch:!0},t);return e.each(function(t,e){var o,i=$(e);o=s.target?i.find(s.target):i,i.on("mouseenter",function(t){return s.stopOnTouch&&i.data("-bc-is-touchstarted")?(i.data("-bc-is-touchstarted",!1),!0):(o.stop(!0,!1).fadeTo(s.close,s.opacity).fadeTo(s.open,1),!0)}),s.stopOnTouch&&i.on("touchstart",function(t){return i.data("-bc-is-touchstarted",!0),!0})}),e},t.prototype.bcMaps=function(t){var e=$(this);return e.each(function(e,s){var o=$(s),i=o.data(d.className);i?i.reload(t):new d(s,t)})},t.prototype.bcYoutube=function(t){var e=$(this);return e.each(function(e,s){var o=$(s),i=o.data(m.className);i?i.reload(t):new m(s,t)})},t.prototype.bcRollover=function(t){var e=$(this),s=$.extend({pattern:/_off(\.(?:[a-z0-9]{1,6}))$/i,replace:"_on$1",dataPrefix:"-bc-rollover-",ignore:"",filter:null,stopOnTouch:!0},t),o=s.dataPrefix+"off",i=s.dataPrefix+"on";
12return e.each(function(t,e){var a=e.nodeName.toLowerCase(),n=$(e).not(s.ignore);if(n.length&&"img"===a||"input"===a&&"image"===n.prop("type")){var r=!0;if($.isFunction(s.filter)?r=!!s.filter.call(e):s.filter&&(r=!!n.filter(s.filter).length),r){var l=n.attr("src");if(l.match(s.pattern)){var c=l.replace(s.pattern,s.replace);n.data(o,l),n.data(i,c)}}}}),e.on("mouseenter",function(t){var e=$(this);if(s.stopOnTouch&&e.data("-bc-is-touchstarted"))return e.data("-bc-is-touchstarted",!1),!0;var o=e.data(i);return e.prop("src",o),!0}),e.on("mouseleave",function(t){var e=$(this);if(s.stopOnTouch&&e.data("-bc-is-touchstarted"))return e.data("-bc-is-touchstarted",!1),!0;var i=e.data(o);return e.prop("src",i),!0}),s.stopOnTouch&&e.on("touchstart",function(t){var e=$(this);return e.data("-bc-is-touchstarted",!0),!0}),e},t.prototype.bcShy=function(t){var e=$(this),s=$.extend({close:300,open:300,opacity:.6,target:null,stopOnTouch:!0},t);return e.each(function(t,e){var o,i=$(e);o=s.target?i.find(s.target):i,i.on("mouseenter",function(t){return s.stopOnTouch&&i.data("-bc-is-touchstarted")?(i.data("-bc-is-touchstarted",!1),!0):(o.stop(!0,!1).fadeTo(s.close,s.opacity),!0)}),i.on("mouseleave",function(t){return s.stopOnTouch&&i.data("-bc-is-touchstarted")?(i.data("-bc-is-touchstarted",!1),!0):(o.stop(!0,!1).fadeTo(s.open,1),!0)}),s.stopOnTouch&&i.on("touchstart",function(t){return i.data("-bc-is-touchstarted",!0),!0})}),e},t}();t.exports=f}]);
13
14window.baser$ = $;
15}(jQuery));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.