PageSourceSearch

https://wordcounter.net/min/880bafdddb7107dc0e8ffbf6e9366efcdd2f40d9.js

js wordcounter.net collected 2026-09-24 17:39:40 UTC 944,650 bytes, 3,380 lines download raw bytes

1var written_count_global,goal_count_global,color_global,size_global,goal_type_global,goal_length_type_global,user_token_global;function showHide(){$('#embed-goal-modal #embed-goal-btn').show();$('#embed-goal-modal .embed_code_txt').css({'opacity':'0','height':'1px'});$('#embed-goal-modal #embed_input').height(1);}
2function setGoalButtonPercent(obj){var percent=(100*written_count_global)/(goal_count_global);if(percent<=100){$("#embed-goal-modal #goal-progress-bar").css("width",percent+"%");}else{$("#embed-goal-modal #goal-progress-bar").css("width","100%");}
3$('#embed-goal-modal .progress #percent_text, #embed-goal-modal .progress-bar div').text(written_count_global+' / '+goal_count_global+' '+goal_type_global);}
4function setGoalButtonSize(obj){var size=$(obj).val();switch(size){case'small':$('#embed-goal-modal .progress, #embed-goal-modal .progress-bar div').width(150);$('#embed-goal-modal .progress').height(20);$('#embed-goal-modal .progress #percent_text, #embed-goal-modal .progress-bar div').css({'line-height':'20px'});$('#embed-goal-modal .goal_button .progress #percent_text, #embed-goal-modal .progress-bar div').css('font-size','12px');break;case'middle':$('#embed-goal-modal .progress, #embed-goal-modal .progress-bar div').width(220);$('#embed-goal-modal .progress').height(30);$('#embed-goal-modal .progress #percent_text, #embed-goal-modal .progress-bar div').css({'line-height':'30px'});$('#embed-goal-modal .goal_button .progress #percent_text, #embed-goal-modal .progress-bar div').css('font-size','19px');break;case'large':$('#embed-goal-modal .progress, #embed-goal-modal .progress-bar div').width(350);$('#embed-goal-modal .progress').height(42);$('#embed-goal-modal .progress #percent_text, #embed-goal-modal .progress-bar div').css({'line-height':'42px'});$('#embed-goal-modal .goal_button .progress #percent_text, #embed-goal-modal .progress-bar div').css('font-size','27px');break;}
5var iframe_width,iframe_height;if(size=='small'){iframe_width=157;iframe_height=24;}
6else if(size=='middle'){iframe_width=227;iframe_height=34;}
7else if(size=='large'){iframe_width=357;iframe_height=46;}
8$('#embed_input').text('<div id="goal_embed_button"></div>'+'<script>(function(d, s, id) {'+'var js, fjs = d.getElementsByTagName(s)[0];'+'if (d.getElementById(id)) return;'+'js = d.createElement(s); '+'js.id = id;'+'js.setAttribute("data-token", "'+user_token_global+'");'+'js.src = "'+share_path+'js/goal_embed_view.min.js";'+'fjs.parentNode.insertBefore(js, fjs);'+'}(document, "script", "embed_goal_js"));</script>');}
9function setGoalButtonColor(obj){var goal_color=$(obj).val();switch(goal_color){case'blue':$('#embed-goal-modal .progress-bar').css('background-color','#559cd9');$('#embed-goal-modal .progress').css('border-color','#448bc8');$('#embed-goal-modal .progress #percent_text').css('color','#448bc8');break;case'red':$('#embed-goal-modal .progress-bar').css('background-color','#ff8888');$('#embed-goal-modal .progress').css('border-color','#ff0000');$('#embed-goal-modal .progress #percent_text').css('color','#ff0000');break;case'green':$('#embed-goal-modal .progress-bar').css('background-color','#5cc55a');$('#embed-goal-modal .progress').css('border-color','#4BB449');$('#embed-goal-modal .progress #percent_text').css('color','#4BB449');break;case'yellow':$('#embed-goal-modal .progress-bar').css('background-color','#F8E37F');$('#embed-goal-modal .progress').css('border-color','#e7d26e');$('#embed-goal-modal .progress #percent_text').css('color','#e7d26e');break;case'pink':$('#embed-goal-modal .progress-bar').css('background-color','#FFC0CB');$('#embed-goal-modal .progress').css('border-color','#eeb0ba');$('#embed-goal-modal .progress #percent_text').css('color','#eeb0ba');break;case'cyan':$('#embed-goal-modal .progress-bar').css('background-color','#55dddd');$('#embed-goal-modal .progress').css('border-color','#44cccc');$('#embed-goal-modal .progress #percent_text').css('color','#44cccc');break;case'brown':$('#embed-goal-modal .progress-bar').css('background-color','#c74c4c');$('#embed-goal-modal .progress').css('border-color','#A52A2A');$('#embed-goal-modal .progress #percent_text').css('color','#A52A2A');break;
9case'purple':$('#embed-goal-modal .progress-bar').css('background-color','#c000c0');$('#embed-goal-modal .progress').css('border-color','#a000a0');$('#embed-goal-modal .progress #percent_text').css('color','#a000a0');break;case'orange':$('#embed-goal-modal .progress-bar').css('background-color','#ffb611');$('#embed-goal-modal .progress').css('border-color','#FFA500');$('#embed-goal-modal .progress #percent_text').css('color','#FFA500');break;}}
10$(document).ready(function(){$('.goal_embed').click(function(){$('#embed-goal-modal #embed-goal-btn').show();var goal_count=$('#goal_form input[name=goal_count]').val();var goal_type=$('#goal_form input[name=goal_type]').val();var written_count=$('#goal_form input[name=written_count]').val().replace(/,/gi,'');var goal_length_type=$('#goal_form input[name=goal_length_type]').val();var dataObject={'embed_goal':true,'goal_count':goal_count,'written_count':written_count,'goal_type':goal_type,'goal_length_type':goal_length_type};jQuery.ajax({type:"POST",url:"site/embed-goal",data:dataObject,success:function(data){if(data.success){goal_type_global=data.goal_type;written_count_global=editor.commaSeparateNumber([data.written_count]);goal_count_global=editor.commaSeparateNumber([data.goal_count]);size_global=data.goal_size;color_global=data.goal_color;goal_length_type_global=data.goal_length_type;user_token_global=data.user_token;setGoalButtonPercent('#embed-goal-modal #caption');$('#embed-goal-modal #col option').removeAttr('selected');$('#embed-goal-modal #col option[value="'+color_global+'"]').attr('selected','selected');$('#embed-goal-modal #size option').removeAttr('selected');$('#embed-goal-modal #size option[value="'+size_global+'"]').attr('selected','selected');setGoalButtonColor('#embed-goal-modal #col');setGoalButtonSize('#embed-goal-modal #size');$('#embed-goal-modal .embed_code_txt').css({'opacity':'0','height':'1px'});$('#embed-goal-modal #embed_input').height(1);var iframe_width,iframe_height;if(size_global=='small'){iframe_width=157;iframe_height=24;}
11else if(size_global=='middle'){iframe_width=227;iframe_height=34;}
12else if(size_global=='large'){iframe_width=357;iframe_height=46;}
13$('#embed_input').text('<div id="goal_embed_button"></div>'+'<script>(function(d, s, id) {'+'var js, fjs = d.getElementsByTagName(s)[0];'+'if (d.getElementById(id)) return;'+'js = d.createElement(s); '+'js.id = id;'+'js.setAttribute("data-token", "'+user_token_global+'");'+'js.src = "'+share_path+'js/goal_embed_view.min.js";'+'fjs.parentNode.insertBefore(js, fjs);'+'}(document, "script", "embed_goal_js"));</script>');}}});});$('#embed_input').click(function(){$(this).focus();document.execCommand("SelectAll",false,null);});$('#copy-text-btn').click(function(){$(this).find('span:last-of-type').text(editor.selectedLanguage.copied);$('#embed_input').focus();document.execCommand('SelectAll');document.execCommand("Copy",false,null);});$('#embed-goal-modal #embed-goal-code-hide-btn').click(function(){$('#embed-goal-modal #embed-goal-btn').show();$('#embed-goal-modal .embed_code_txt').css({'opacity':'0','height':'1px'});$('#embed-goal-modal #embed_input').height(1);});$('#embed-goal-btn').click(function(){var size=$('#embed-goal-modal #size').val();var color=$('#embed-goal-modal #col').val();var dataObject={'goal_type':goal_type_global,'goal_count':goal_count_global,'written_count':written_count_global,'goal_length_type':goal_length_type_global,'goal_size':size,'goal_color':color};$.ajax({type:"POST",url:"site/embed-goal",data:dataObject,success:function(data){if(data.success){$('#copy-text-btn').find('span:last-of-type').text(editor.selectedLanguage.copy);}}});$('#embed_input').focus();document.execCommand('SelectAll');document.execCommand("Copy",false,null);$('#embed-goal-modal .embed_code_txt').css({'opacity':'1','height':'auto'});$('#embed-goal-modal #embed_input').height('auto');$('#embed-goal-modal #embed-goal-btn').hide();});});;
14/*!
15 * Bootstrap v3.4.1 (https://getbootstrap.com/)
16 * Copyright 2011-2019 Twitter, Inc.
17 * Licensed under the MIT license
18 */
19if(typeof jQuery==='undefined'){throw new Error('Bootstrap\'s JavaScript requires jQuery')}
20+function($){'use strict';var version=$.fn.jquery.split(' ')[0].split('.')
21if((version[0]<2&&version[1]<9)||(version[0]==1&&version[1]==9&&version[2]<1)||(version[0]>3)){throw new Error('Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4')}}(jQuery);+function($){'use strict';function transitionEnd(){var el=document.createElement('bootstrap')
22var transEndEventNames={WebkitTransition:'webkitTransitionEnd',MozTransition:'transitionend',OTransition:'oTransitionEnd otransitionend',transition:'transitionend'}
vendor: 50,852 bytes, lines 23-862
23for(var name in transEndEventNames){if(el.style[name]!==undefined){return{end:transEndEventNames[name]}}}
24return false}
25$.fn.emulateTransitionEnd=function(duration){var called=false
26var $el=this
27$(this).one('bsTransitionEnd',function(){called=true})
28var callback=function(){if(!called)$($el).trigger($.support.transition.end)}
29setTimeout(callback,duration)
30return this}
31$(function(){$.support.transition=transitionEnd()
32if(!$.support.transition)return
33$.event.special.bsTransitionEnd={bindType:$.support.transition.end,delegateType:$.support.transition.end,handle:function(e){if($(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}}})}(jQuery);+function($){'use strict';var dismiss='[data-dismiss="alert"]'
34var Alert=function(el){$(el).on('click',dismiss,this.close)}
35Alert.VERSION='3.4.1'
36Alert.TRANSITION_DURATION=150
37Alert.prototype.close=function(e){var $this=$(this)
38var selector=$this.attr('data-target')
39if(!selector){selector=$this.attr('href')
40selector=selector&&selector.replace(/.*(?=#[^\s]*$)/,'')}
41selector=selector==='#'?[]:selector
42var $parent=$(document).find(selector)
43if(e)e.preventDefault()
44if(!$parent.length){$parent=$this.closest('.alert')}
45$parent.trigger(e=$.Event('close.bs.alert'))
46if(e.isDefaultPrevented())return
47$parent.removeClass('in')
48function removeElement(){$parent.detach().trigger('closed.bs.alert').remove()}
49$.support.transition&&$parent.hasClass('fade')?$parent.one('bsTransitionEnd',removeElement).emulateTransitionEnd(Alert.TRANSITION_DURATION):removeElement()}
50function Plugin(option){return this.each(function(){var $this=$(this)
51var data=$this.data('bs.alert')
52if(!data)$this.data('bs.alert',(data=new Alert(this)))
53if(typeof option=='string')data[option].call($this)})}
54var old=$.fn.alert
55$.fn.alert=Plugin
56$.fn.alert.Constructor=Alert
57$.fn.alert.noConflict=function(){$.fn.alert=old
58return this}
59$(document).on('click.bs.alert.data-api',dismiss,Alert.prototype.close)}(jQuery);+function($){'use strict';var Button=function(element,options){this.$element=$(element)
60this.options=$.extend({},Button.DEFAULTS,options)
61this.isLoading=false}
62Button.VERSION='3.4.1'
63Button.DEFAULTS={loadingText:'loading...'}
64Button.prototype.setState=function(state){var d='disabled'
65var $el=this.$element
66var val=$el.is('input')?'val':'html'
67var data=$el.data()
68state+='Text'
69if(data.resetText==null)$el.data('resetText',$el[val]())
70setTimeout($.proxy(function(){$el[val](data[state]==null?this.options[state]:data[state])
71if(state=='loadingText'){this.isLoading=true
72$el.addClass(d).attr(d,d).prop(d,true)}else if(this.isLoading){this.isLoading=false
73$el.removeClass(d).removeAttr(d).prop(d,false)}},this),0)}
74Button.prototype.toggle=function(){var changed=true
75var $parent=this.$element.closest('[data-toggle="buttons"]')
76if($parent.length){var $input=this.$element.find('input')
77if($input.prop('type')=='radio'){if($input.prop('checked'))changed=false
78$parent.find('.active').removeClass('active')
79this.$element.addClass('active')}else if($input.prop('type')=='checkbox'){if(($input.prop('checked'))!==this.$element.hasClass('active'))changed=false
80this.$element.toggleClass('active')}
81$input.prop('checked',this.$element.hasClass('active'))
82if(changed)$input.trigger('change')}else{this.$element.attr('aria-pressed',!this.$element.hasClass('active'))
83this.$element.toggleClass('active')}}
84function Plugin(option){return this.each(function(){var $this=$(this)
85var data=$this.data('bs.button')
86var options=typeof option=='object'&&option
87if(!data)$this.data('bs.button',(data=new Button(this,options)))
88if(option=='toggle')data.toggle()
89else if(option)data.setState(option)})}
90var old=$.fn.button
91$.fn.button=Plugin
92$.fn.button.Constructor=Button
93$.fn.button.noConflict=function(){$.fn.button=old
94return this}
95$(document).on('click.bs.button.data-api','[data-toggle^="button"]',function(e){var $btn=$(e.target).closest('.btn')
96Plugin.call($btn,'toggle')
97if(!($(e.target).is('input[type="radio"], input[type="checkbox"]'))){e.preventDefault()
98if($btn.is('input,button'))$btn.trigger('focus')
99else $btn.find('input:visible,button:visible').first().trigger('focus')}}).on('focus.bs.button.data-api blur.bs.button.data-api','[data-toggle^="button"]',function(e){$(e.target).closest('.btn').toggleClass('focus',/^focus(in)?$/.test(e.type))})}(jQuery);+function($){'use strict';var Carousel=function(element,options){this.$element=$(element)
100this.$indicators=this.$element.find('.carousel-indicators')
101this.options=options
102this.paused=null
103this.sliding=null
104this.interval=null
105this.$active=null
106this.$items=null
107this.options.keyboard&&this.$element.on('keydown.bs.carousel',$.proxy(this.keydown,this))
108this.options.pause=='hover'&&!('ontouchstart'in document.documentElement)&&this.$element.on('mouseenter.bs.carousel',$.proxy(this.pause,this)).on('mouseleave.bs.carousel',$.proxy(this.cycle,this))}
109Carousel.VERSION='3.4.1'
110Carousel.TRANSITION_DURATION=600
111Carousel.DEFAULTS={interval:5000,pause:'hover',wrap:true,keyboard:true}
112Carousel.prototype.keydown=function(e){if(/input|textarea/i.test(e.target.tagName))return
113switch(e.which){case 37:this.prev();break
114case 39:this.next();break
115default:return}
116e.preventDefault()}
117Carousel.prototype.cycle=function(e){e||(this.paused=false)
118this.interval&&clearInterval(this.interval)
119this.options.interval&&!this.paused&&(this.interval=setInterval($.proxy(this.next,this),this.options.interval))
120return this}
121Carousel.prototype.getItemIndex=function(item){this.$items=item.parent().children('.item')
122return this.$items.index(item||this.$active)}
123Carousel.prototype.getItemForDirection=function(direction,active){var activeIndex=this.getItemIndex(active)
124var willWrap=(direction=='prev'&&activeIndex===0)||(direction=='next'&&activeIndex==(this.$items.length-1))
125if(willWrap&&!this.options.wrap)return active
126var delta=direction=='prev'?-1:1
127var itemIndex=(activeIndex+delta)%this.$items.length
128return this.$items.eq(itemIndex)}
129Carousel.prototype.to=function(pos){var that=this
130var activeIndex=this.getItemIndex(this.$active=this.$element.find('.item.active'))
131if(pos>(this.$items.length-1)||pos<0)return
132if(this.sliding)return this.$element.one('slid.bs.carousel',function(){that.to(pos)})
133if(activeIndex==pos)return this.pause().cycle()
134return this.slide(pos>activeIndex?'next':'prev',this.$items.eq(pos))}
135Carousel.prototype.pause=function(e){e||(this.paused=true)
136if(this.$element.find('.next, .prev').length&&$.support.transition){this.$element.trigger($.support.transition.end)
137this.cycle(true)}
138this.interval=clearInterval(this.interval)
139return this}
140Carousel.prototype.next=function(){if(this.sliding)return
141return this.slide('next')}
142Carousel.prototype.prev=function(){if(this.sliding)return
143return this.slide('prev')}
144Carousel.prototype.slide=function(type,next){var $active=this.$element.find('.item.active')
145var $next=next||this.getItemForDirection(type,$active)
146var isCycling=this.interval
147var direction=type=='next'?'left':'right'
148var that=this
149if($next.hasClass('active'))return(this.sliding=false)
150var relatedTarget=$next[0]
151var slideEvent=$.Event('slide.bs.carousel',{relatedTarget:relatedTarget,direction:direction})
152this.$element.trigger(slideEvent)
153if(slideEvent.isDefaultPrevented())return
154this.sliding=true
155isCycling&&this.pause()
156if(this.$indicators.length){this.$indicators.find('.active').removeClass('active')
157var $nextIndicator=$(this.$indicators.children()[this.getItemIndex($next)])
158$nextIndicator&&$nextIndicator.addClass('active')}
159var slidEvent=$.Event('slid.bs.carousel',{relatedTarget:relatedTarget,direction:direction})
160if($.support.transition&&this.$element.hasClass('slide')){$next.addClass(type)
161if(typeof $next==='object'&&$next.length){$next[0].offsetWidth}
162$active.addClass(direction)
163$next.addClass(direction)
164$active.one('bsTransitionEnd',function(){$next.removeClass([type,direction].join(' ')).addClass('active')
165$active.removeClass(['active',direction].join(' '))
166that.sliding=false
167setTimeout(function(){that.$element.trigger(slidEvent)},0)}).emulateTransitionEnd(Carousel.TRANSITION_DURATION)}else{$active.removeClass('active')
168$next.addClass('active')
169this.sliding=false
170this.$element.trigger(slidEvent)}
171isCycling&&this.cycle()
172return this}
173function Plugin(option){return this.each(function(){var $this=$(this)
174var data=$this.data('bs.carousel')
175var options=$.extend({},Carousel.DEFAULTS,$this.data(),typeof option=='object'&&option)
176var action=typeof option=='string'?option:options.slide
177if(!data)$this.data('bs.carousel',(data=new Carousel(this,options)))
178if(typeof option=='number')data.to(option)
179else if(action)data[action]()
180else if(options.interval)data.pause().cycle()})}
181var old=$.fn.carousel
182$.fn.carousel=Plugin
183$.fn.carousel.Constructor=Carousel
184$.fn.carousel.noConflict=function(){$.fn.carousel=old
185return this}
186var clickHandler=function(e){var $this=$(this)
187var href=$this.attr('href')
188if(href){href=href.replace(/.*(?=#[^\s]+$)/,'')}
189var target=$this.attr('data-target')||href
190var $target=$(document).find(target)
191if(!$target.hasClass('carousel'))return
192var options=$.extend({},$target.data(),$this.data())
193var slideIndex=$this.attr('data-slide-to')
194if(slideIndex)options.interval=false
195Plugin.call($target,options)
196if(slideIndex){$target.data('bs.carousel').to(slideIndex)}
197e.preventDefault()}
198$(document).on('click.bs.carousel.data-api','[data-slide]',clickHandler).on('click.bs.carousel.data-api','[data-slide-to]',clickHandler)
199$(window).on('load',function(){$('[data-ride="carousel"]').each(function(){var $carousel=$(this)
200Plugin.call($carousel,$carousel.data())})})}(jQuery);+function($){'use strict';var Collapse=function(element,options){this.$element=$(element)
201this.options=$.extend({},Collapse.DEFAULTS,options)
202this.$trigger=$('[data-toggle="collapse"][href="#'+element.id+'"],'+'[data-toggle="collapse"][data-target="#'+element.id+'"]')
203this.transitioning=null
204if(this.options.parent){this.$parent=this.getParent()}else{this.addAriaAndCollapsedClass(this.$element,this.$trigger)}
205if(this.options.toggle)this.toggle()}
206Collapse.VERSION='3.4.1'
207Collapse.TRANSITION_DURATION=350
208Collapse.DEFAULTS={toggle:true}
209Collapse.prototype.dimension=function(){var hasWidth=this.$element.hasClass('width')
210return hasWidth?'width':'height'}
211Collapse.prototype.show=function(){if(this.transitioning||this.$element.hasClass('in'))return
212var activesData
213var actives=this.$parent&&this.$parent.children('.panel').children('.in, .collapsing')
214if(actives&&actives.length){activesData=actives.data('bs.collapse')
215if(activesData&&activesData.transitioning)return}
216var startEvent=$.Event('show.bs.collapse')
217this.$element.trigger(startEvent)
218if(startEvent.isDefaultPrevented())return
219if(actives&&actives.length){Plugin.call(actives,'hide')
220activesData||actives.data('bs.collapse',null)}
221var dimension=this.dimension()
222this.$element.removeClass('collapse').addClass('collapsing')[dimension](0).attr('aria-expanded',true)
223this.$trigger.removeClass('collapsed').attr('aria-expanded',true)
224this.transitioning=1
225var complete=function(){this.$element.removeClass('collapsing').addClass('collapse in')[dimension]('')
226this.transitioning=0
227this.$element.trigger('shown.bs.collapse')}
228if(!$.support.transition)return complete.call(this)
229var scrollSize=$.camelCase(['scroll',dimension].join('-'))
230this.$element.one('bsTransitionEnd',$.proxy(complete,this)).emulateTransitionEnd(Collapse.TRANSITION_DURATION)[dimension](this.$element[0][scrollSize])}
231Collapse.prototype.hide=function(){if(this.transitioning||!this.$element.hasClass('in'))return
232var startEvent=$.Event('hide.bs.collapse')
233this.$element.trigger(startEvent)
234if(startEvent.isDefaultPrevented())return
235var dimension=this.dimension()
236this.$element[dimension](this.$element[dimension]())[0].offsetHeight
237this.$element.addClass('collapsing').removeClass('collapse in').attr('aria-expanded',false)
238this.$trigger.addClass('collapsed').attr('aria-expanded',false)
239this.transitioning=1
240var complete=function(){this.transitioning=0
241this.$element.removeClass('collapsing').addClass('collapse').trigger('hidden.bs.collapse')}
242if(!$.support.transition)return complete.call(this)
243this.$element
244[dimension](0).one('bsTransitionEnd',$.proxy(complete,this)).emulateTransitionEnd(Collapse.TRANSITION_DURATION)}
245Collapse.prototype.toggle=function(){this[this.$element.hasClass('in')?'hide':'show']()}
246Collapse.prototype.getParent=function(){return $(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each($.proxy(function(i,element){var $element=$(element)
247this.addAriaAndCollapsedClass(getTargetFromTrigger($element),$element)},this)).end()}
248Collapse.prototype.addAriaAndCollapsedClass=function($element,$trigger){var isOpen=$element.hasClass('in')
249$element.attr('aria-expanded',isOpen)
250$trigger.toggleClass('collapsed',!isOpen).attr('aria-expanded',isOpen)}
251function getTargetFromTrigger($trigger){var href
252var target=$trigger.attr('data-target')||(href=$trigger.attr('href'))&&href.replace(/.*(?=#[^\s]+$)/,'')
253return $(document).find(target)}
254function Plugin(option){return this.each(function(){var $this=$(this)
255var data=$this.data('bs.collapse')
256var options=$.extend({},Collapse.DEFAULTS,$this.data(),typeof option=='object'&&option)
257if(!data&&options.toggle&&/show|hide/.test(option))options.toggle=false
258if(!data)$this.data('bs.collapse',(data=new Collapse(this,options)))
259if(typeof option=='string')data[option]()})}
260var old=$.fn.collapse
261$.fn.collapse=Plugin
262$.fn.collapse.Constructor=Collapse
263$.fn.collapse.noConflict=function(){$.fn.collapse=old
264return this}
265$(document).on('click.bs.collapse.data-api','[data-toggle="collapse"]',function(e){var $this=$(this)
266if(!$this.attr('data-target'))e.preventDefault()
267var $target=getTargetFromTrigger($this)
268var data=$target.data('bs.collapse')
269var option=data?'toggle':$this.data()
270Plugin.call($target,option)})}(jQuery);+function($){'use strict';var backdrop='.dropdown-backdrop'
271var toggle='[data-toggle="dropdown"]'
272var Dropdown=function(element){$(element).on('click.bs.dropdown',this.toggle)}
273Dropdown.VERSION='3.4.1'
274function getParent($this){var selector=$this.attr('data-target')
275if(!selector){selector=$this.attr('href')
276selector=selector&&/#[A-Za-z]/.test(selector)&&selector.replace(/.*(?=#[^\s]*$)/,'')}
277var $parent=selector!=='#'?$(document).find(selector):null
278return $parent&&$parent.length?$parent:$this.parent()}
279function clearMenus(e){if(e&&e.which===3)return
280$(backdrop).remove()
281$(toggle).each(function(){var $this=$(this)
282var $parent=getParent($this)
283var relatedTarget={relatedTarget:this}
284if(!$parent.hasClass('open'))return
285if(e&&e.type=='click'&&/input|textarea/i.test(e.target.tagName)&&$.contains($parent[0],e.target))return
286$parent.trigger(e=$.Event('hide.bs.dropdown',relatedTarget))
287if(e.isDefaultPrevented())return
288$this.attr('aria-expanded','false')
289$parent.removeClass('open').trigger($.Event('hidden.bs.dropdown',relatedTarget))})}
290Dropdown.prototype.toggle=function(e){var $this=$(this)
291if($this.is('.disabled, :disabled'))return
292var $parent=getParent($this)
293var isActive=$parent.hasClass('open')
294clearMenus()
295if(!isActive){if('ontouchstart'in document.documentElement&&!$parent.closest('.navbar-nav').length){$(document.createElement('div')).addClass('dropdown-backdrop').insertAfter($(this)).on('click',clearMenus)}
296var relatedTarget={relatedTarget:this}
297$parent.trigger(e=$.Event('show.bs.dropdown',relatedTarget))
298if(e.isDefaultPrevented())return
299$this.trigger('focus').attr('aria-expanded','true')
300$parent.toggleClass('open').trigger($.Event('shown.bs.dropdown',relatedTarget))}
301return false}
302Dropdown.prototype.keydown=function(e){if(!/(38|40|27|32)/.test(e.which)||/input|textarea/i.test(e.target.tagName))return
303var $this=$(this)
304e.preventDefault()
305e.stopPropagation()
306if($this.is('.disabled, :disabled'))return
307var $parent=getParent($this)
308var isActive=$parent.hasClass('open')
309if(!isActive&&e.which!=27||isActive&&e.which==27){if(e.which==27)$parent.find(toggle).trigger('focus')
310return $this.trigger('click')}
311var desc=' li:not(.disabled):visible a'
312var $items=$parent.find('.dropdown-menu'+desc)
313if(!$items.length)return
314var index=$items.index(e.target)
315if(e.which==38&&index>0)index--
316if(e.which==40&&index<$items.length-1)index++
317if(!~index)index=0
318$items.eq(index).trigger('focus')}
319function Plugin(option){return this.each(function(){var $this=$(this)
320var data=$this.data('bs.dropdown')
321if(!data)$this.data('bs.dropdown',(data=new Dropdown(this)))
322if(typeof option=='string')data[option].call($this)})}
323var old=$.fn.dropdown
324$.fn.dropdown=Plugin
325$.fn.dropdown.Constructor=Dropdown
326$.fn.dropdown.noConflict=function(){$.fn.dropdown=old
327return this}
328$(document).on('click.bs.dropdown.data-api',clearMenus).on('click.bs.dropdown.data-api','.dropdown form',function(e){e.stopPropagation()}).on('click.bs.dropdown.data-api',toggle,Dropdown.prototype.toggle).on('keydown.bs.dropdown.data-api',toggle,Dropdown.prototype.keydown).on('keydown.bs.dropdown.data-api','.dropdown-menu',Dropdown.prototype.keydown)}(jQuery);+function($){'use strict';var Modal=function(element,options){this.options=options
329this.$body=$(document.body)
330this.$element=$(element)
331this.$dialog=this.$element.find('.modal-dialog')
332this.$backdrop=null
333this.isShown=null
334this.originalBodyPad=null
335this.scrollbarWidth=0
336this.ignoreBackdropClick=false
337this.fixedContent='.navbar-fixed-top, .navbar-fixed-bottom'
338if(this.options.remote){this.$element.find('.modal-content').load(this.options.remote,$.proxy(function(){this.$element.trigger('loaded.bs.modal')},this))}}
339Modal.VERSION='3.4.1'
340Modal.TRANSITION_DURATION=300
341Modal.BACKDROP_TRANSITION_DURATION=150
342Modal.DEFAULTS={backdrop:true,keyboard:true,show:true}
343Modal.prototype.toggle=function(_relatedTarget){return this.isShown?this.hide():this.show(_relatedTarget)}
344Modal.prototype.show=function(_relatedTarget){var that=this
345var e=$.Event('show.bs.modal',{relatedTarget:_relatedTarget})
346this.$element.trigger(e)
347if(this.isShown||e.isDefaultPrevented())return
348this.isShown=true
349this.checkScrollbar()
350this.setScrollbar()
351this.$body.addClass('modal-open')
352this.escape()
353this.resize()
354this.$element.on('click.dismiss.bs.modal','[data-dismiss="modal"]',$.proxy(this.hide,this))
355this.$dialog.on('mousedown.dismiss.bs.modal',function(){that.$element.one('mouseup.dismiss.bs.modal',function(e){if($(e.target).is(that.$element))that.ignoreBackdropClick=true})})
356this.backdrop(function(){var transition=$.support.transition&&that.$element.hasClass('fade')
357if(!that.$element.parent().length){that.$element.appendTo(that.$body)}
358that.$element.show().scrollTop(0)
359that.adjustDialog()
360if(transition){that.$element[0].offsetWidth}
361that.$element.addClass('in')
362that.enforceFocus()
363var e=$.Event('shown.bs.modal',{relatedTarget:_relatedTarget})
364transition?that.$dialog.one('bsTransitionEnd',function(){that.$element.trigger('focus').trigger(e)}).emulateTransitionEnd(Modal.TRANSITION_DURATION):that.$element.trigger('focus').trigger(e)})}
365Modal.prototype.hide=function(e){if(e)e.preventDefault()
366e=$.Event('hide.bs.modal')
367this.$element.trigger(e)
368if(!this.isShown||e.isDefaultPrevented())return
369this.isShown=false
370this.escape()
371this.resize()
372$(document).off('focusin.bs.modal')
373this.$element.removeClass('in').off('click.dismiss.bs.modal').off('mouseup.dismiss.bs.modal')
374this.$dialog.off('mousedown.dismiss.bs.modal')
375$.support.transition&&this.$element.hasClass('fade')?this.$element.one('bsTransitionEnd',$.proxy(this.hideModal,this)).emulateTransitionEnd(Modal.TRANSITION_DURATION):this.hideModal()}
376Modal.prototype.enforceFocus=function(){$(document).off('focusin.bs.modal').on('focusin.bs.modal',$.proxy(function(e){if(document!==e.target&&this.$element[0]!==e.target&&!this.$element.has(e.target).length){this.$element.trigger('focus')}},this))}
377Modal.prototype.escape=function(){if(this.isShown&&this.options.keyboard){this.$element.on('keydown.dismiss.bs.modal',$.proxy(function(e){e.which==27&&this.hide()},this))}else if(!this.isShown){this.$element.off('keydown.dismiss.bs.modal')}}
378Modal.prototype.resize=function(){if(this.isShown){$(window).on('resize.bs.modal',$.proxy(this.handleUpdate,this))}else{$(window).off('resize.bs.modal')}}
379Modal.prototype.hideModal=function(){var that=this
380this.$element.hide()
381this.backdrop(function(){that.$body.removeClass('modal-open')
382that.resetAdjustments()
383that.resetScrollbar()
384that.$element.trigger('hidden.bs.modal')})}
385Modal.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove()
386this.$backdrop=null}
387Modal.prototype.backdrop=function(callback){var that=this
388var animate=this.$element.hasClass('fade')?'fade':''
389if(this.isShown&&this.options.backdrop){var doAnimate=$.support.transition&&animate
390this.$backdrop=$(document.createElement('div')).addClass('modal-backdrop '+animate).appendTo(this.$body)
391this.$element.on('click.dismiss.bs.modal',$.proxy(function(e){if(this.ignoreBackdropClick){this.ignoreBackdropClick=false
392return}
393if(e.target!==e.currentTarget)return
394this.options.backdrop=='static'?this.$element[0].focus():this.hide()},this))
395if(doAnimate)this.$backdrop[0].offsetWidth
396this.$backdrop.addClass('in')
397if(!callback)return
398doAnimate?this.$backdrop.one('bsTransitionEnd',callback).emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION):callback()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass('in')
399var callbackRemove=function(){that.removeBackdrop()
400callback&&callback()}
401$.support.transition&&this.$element.hasClass('fade')?this.$backdrop.one('bsTransitionEnd',callbackRemove).emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION):callbackRemove()}else if(callback){callback()}}
402Modal.prototype.handleUpdate=function(){this.adjustDialog()}
403Modal.prototype.adjustDialog=function(){var modalIsOverflowing=this.$element[0].scrollHeight>document.documentElement.clientHeight
404this.$element.css({paddingLeft:!this.bodyIsOverflowing&&modalIsOverflowing?this.scrollbarWidth:'',paddingRight:this.bodyIsOverflowing&&!modalIsOverflowing?this.scrollbarWidth:''})}
405Modal.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:'',paddingRight:''})}
406Modal.prototype.checkScrollbar=function(){var fullWindowWidth=window.innerWidth
407if(!fullWindowWidth){var documentElementRect=document.documentElement.getBoundingClientRect()
408fullWindowWidth=documentElementRect.right-Math.abs(documentElementRect.left)}
409this.bodyIsOverflowing=document.body.clientWidth<fullWindowWidth
410this.scrollbarWidth=this.measureScrollbar()}
411Modal.prototype.setScrollbar=function(){var bodyPad=parseInt((this.$body.css('padding-right')||0),10)
412this.originalBodyPad=document.body.style.paddingRight||''
413var scrollbarWidth=this.scrollbarWidth
414if(this.bodyIsOverflowing){this.$body.css('padding-right',bodyPad+scrollbarWidth)
415$(this.fixedContent).each(function(index,element){var actualPadding=element.style.paddingRight
416var calculatedPadding=$(element).css('padding-right')
417$(element).data('padding-right',actualPadding).css('padding-right',parseFloat(calculatedPadding)+scrollbarWidth+'px')})}}
418Modal.prototype.resetScrollbar=function(){this.$body.css('padding-right',this.originalBodyPad)
419$(this.fixedContent).each(function(index,element){var padding=$(element).data('padding-right')
420$(element).removeData('padding-right')
421element.style.paddingRight=padding?padding:''})}
422Modal.prototype.measureScrollbar=function(){var scrollDiv=document.createElement('div')
423scrollDiv.className='modal-scrollbar-measure'
424this.$body.append(scrollDiv)
425var scrollbarWidth=scrollDiv.offsetWidth-scrollDiv.clientWidth
426this.$body[0].removeChild(scrollDiv)
427return scrollbarWidth}
428function Plugin(option,_relatedTarget){return this.each(function(){var $this=$(this)
429var data=$this.data('bs.modal')
430var options=$.extend({},Modal.DEFAULTS,$this.data(),typeof option=='object'&&option)
431if(!data)$this.data('bs.modal',(data=new Modal(this,options)))
432if(typeof option=='string')data[option](_relatedTarget)
433else if(options.show)data.show(_relatedTarget)})}
434var old=$.fn.modal
435$.fn.modal=Plugin
436$.fn.modal.Constructor=Modal
437$.fn.modal.noConflict=function(){$.fn.modal=old
438return this}
439$(document).on('click.bs.modal.data-api','[data-toggle="modal"]',function(e){var $this=$(this)
440var href=$this.attr('href')
441var target=$this.attr('data-target')||(href&&href.replace(/.*(?=#[^\s]+$)/,''))
442var $target=$(document).find(target)
443var option=$target.data('bs.modal')?'toggle':$.extend({remote:!/#/.test(href)&&href},$target.data(),$this.data())
444if($this.is('a'))e.preventDefault()
445$target.one('show.bs.modal',function(showEvent){if(showEvent.isDefaultPrevented())return
446$target.one('hidden.bs.modal',function(){$this.is(':visible')&&$this.trigger('focus')})})
447Plugin.call($target,option,this)})}(jQuery);+function($){'use strict';var DISALLOWED_ATTRIBUTES=['sanitize','whiteList','sanitizeFn']
448var uriAttrs=['background','cite','href','itemtype','longdesc','poster','src','xlink:href']
449var ARIA_ATTRIBUTE_PATTERN=/^aria-[\w-]*$/i
450var DefaultWhitelist={'*':['class','dir','id','lang','role',ARIA_ATTRIBUTE_PATTERN],a:['target','href','title','rel'],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:['src','alt','title','width','height'],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]}
451var SAFE_URL_PATTERN=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi
452var DATA_URL_PATTERN=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i
453function allowedAttribute(attr,allowedAttributeList){var attrName=attr.nodeName.toLowerCase()
454if($.inArray(attrName,allowedAttributeList)!==-1){if($.inArray(attrName,uriAttrs)!==-1){return Boolean(attr.nodeValue.match(SAFE_URL_PATTERN)||attr.nodeValue.match(DATA_URL_PATTERN))}
455return true}
456var regExp=$(allowedAttributeList).filter(function(index,value){return value instanceof RegExp})
457for(var i=0,l=regExp.length;i<l;i++){if(attrName.match(regExp[i])){return true}}
458return false}
459function sanitizeHtml(unsafeHtml,whiteList,sanitizeFn){if(unsafeHtml.length===0){return unsafeHtml}
460if(sanitizeFn&&typeof sanitizeFn==='function'){return sanitizeFn(unsafeHtml)}
461if(!document.implementation||!document.implementation.createHTMLDocument){return unsafeHtml}
462var createdDocument=document.implementation.createHTMLDocument('sanitization')
463createdDocument.body.innerHTML=unsafeHtml
464var whitelistKeys=$.map(whiteList,function(el,i){return i})
465var elements=$(createdDocument.body).find('*')
466for(var i=0,len=elements.length;i<len;i++){var el=elements[i]
467var elName=el.nodeName.toLowerCase()
468if($.inArray(elName,whitelistKeys)===-1){el.parentNode.removeChild(el)
469continue}
470var attributeList=$.map(el.attributes,function(el){return el})
471var whitelistedAttributes=[].concat(whiteList['*']||[],whiteList[elName]||[])
472for(var j=0,len2=attributeList.length;j<len2;j++){if(!allowedAttribute(attributeList[j],whitelistedAttributes)){el.removeAttribute(attributeList[j].nodeName)}}}
473return createdDocument.body.innerHTML}
474var Tooltip=function(element,options){this.type=null
475this.options=null
476this.enabled=null
477this.timeout=null
478this.hoverState=null
479this.$element=null
480this.inState=null
481this.init('tooltip',element,options)}
482Tooltip.VERSION='3.4.1'
483Tooltip.TRANSITION_DURATION=150
484Tooltip.DEFAULTS={animation:true,placement:'top',selector:false,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:'hover focus',title:'',delay:0,html:false,container:false,viewport:{selector:'body',padding:0},sanitize:true,sanitizeFn:null,whiteList:DefaultWhitelist}
485Tooltip.prototype.init=function(type,element,options){this.enabled=true
486this.type=type
487this.$element=$(element)
488this.options=this.getOptions(options)
489this.$viewport=this.options.viewport&&$(document).find($.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):(this.options.viewport.selector||this.options.viewport))
490this.inState={click:false,hover:false,focus:false}
491if(this.$element[0]instanceof document.constructor&&!this.options.selector){throw new Error('`selector` option must be specified when initializing '+this.type+' on the window.document object!')}
492var triggers=this.options.trigger.split(' ')
493for(var i=triggers.length;i--;){var trigger=triggers[i]
494if(trigger=='click'){this.$element.on('click.'+this.type,this.options.selector,$.proxy(this.toggle,this))}else if(trigger!='manual'){var eventIn=trigger=='hover'?'mouseenter':'focusin'
495var eventOut=trigger=='hover'?'mouseleave':'focusout'
496this.$element.on(eventIn+'.'+this.type,this.options.selector,$.proxy(this.enter,this))
497this.$element.on(eventOut+'.'+this.type,this.options.selector,$.proxy(this.leave,this))}}
498this.options.selector?(this._options=$.extend({},this.options,{trigger:'manual',selector:''})):this.fixTitle()}
499Tooltip.prototype.getDefaults=function(){return Tooltip.DEFAULTS}
500Tooltip.prototype.getOptions=function(options){var dataAttributes=this.$element.data()
501for(var dataAttr in dataAttributes){if(dataAttributes.hasOwnProperty(dataAttr)&&$.inArray(dataAttr,DISALLOWED_ATTRIBUTES)!==-1){delete dataAttributes[dataAttr]}}
502options=$.extend({},this.getDefaults(),dataAttributes,options)
503if(options.delay&&typeof options.delay=='number'){options.delay={show:options.delay,hide:options.delay}}
504if(options.sanitize){options.template=sanitizeHtml(options.template,options.whiteList,options.sanitizeFn)}
505return options}
506Tooltip.prototype.getDelegateOptions=function(){var options={}
507var defaults=this.getDefaults()
508this._options&&$.each(this._options,function(key,value){if(defaults[key]!=value)options[key]=value})
509return options}
510Tooltip.prototype.enter=function(obj){var self=obj instanceof this.constructor?obj:$(obj.currentTarget).data('bs.'+this.type)
511if(!self){self=new this.constructor(obj.currentTarget,this.getDelegateOptions())
512$(obj.currentTarget).data('bs.'+this.type,self)}
513if(obj instanceof $.Event){self.inState[obj.type=='focusin'?'focus':'hover']=true}
514if(self.tip().hasClass('in')||self.hoverState=='in'){self.hoverState='in'
515return}
516clearTimeout(self.timeout)
517self.hoverState='in'
518if(!self.options.delay||!self.options.delay.show)return self.show()
519self.timeout=setTimeout(function(){if(self.hoverState=='in')self.show()},self.options.delay.show)}
520Tooltip.prototype.isInStateTrue=function(){for(var key in this.inState){if(this.inState[key])return true}
521return false}
522Tooltip.prototype.leave=function(obj){var self=obj instanceof this.constructor?obj:$(obj.currentTarget).data('bs.'+this.type)
523if(!self){self=new this.constructor(obj.currentTarget,this.getDelegateOptions())
524$(obj.currentTarget).data('bs.'+this.type,self)}
525if(obj instanceof $.Event){self.inState[obj.type=='focusout'?'focus':'hover']=false}
526if(self.isInStateTrue())return
527clearTimeout(self.timeout)
528self.hoverState='out'
529if(!self.options.delay||!self.options.delay.hide)return self.hide()
530self.timeout=setTimeout(function(){if(self.hoverState=='out')self.hide()},self.options.delay.hide)}
531Tooltip.prototype.show=function(){var e=$.Event('show.bs.'+this.type)
532if(this.hasContent()&&this.enabled){this.$element.trigger(e)
533var inDom=$.contains(this.$element[0].ownerDocument.documentElement,this.$element[0])
534if(e.isDefaultPrevented()||!inDom)return
535var that=this
536var $tip=this.tip()
537var tipId=this.getUID(this.type)
538this.setContent()
539$tip.attr('id',tipId)
540this.$element.attr('aria-describedby',tipId)
541if(this.options.animation)$tip.addClass('fade')
542var placement=typeof this.options.placement=='function'?this.options.placement.call(this,$tip[0],this.$element[0]):this.options.placement
543var autoToken=/\s?auto?\s?/i
544var autoPlace=autoToken.test(placement)
545if(autoPlace)placement=placement.replace(autoToken,'')||'top'
546$tip.detach().css({top:0,left:0,display:'block'}).addClass(placement).data('bs.'+this.type,this)
547this.options.container?$tip.appendTo($(document).find(this.options.container)):$tip.insertAfter(this.$element)
548this.$element.trigger('inserted.bs.'+this.type)
549var pos=this.getPosition()
550var actualWidth=$tip[0].offsetWidth
551var actualHeight=$tip[0].offsetHeight
552if(autoPlace){var orgPlacement=placement
553var viewportDim=this.getPosition(this.$viewport)
554placement=placement=='bottom'&&pos.bottom+actualHeight>viewportDim.bottom?'top':placement=='top'&&pos.top-actualHeight<viewportDim.top?'bottom':placement=='right'&&pos.right+actualWidth>viewportDim.width?'left':placement=='left'&&pos.left-actualWidth<viewportDim.left?'right':placement
555$tip.removeClass(orgPlacement).addClass(placement)}
556var calculatedOffset=this.getCalculatedOffset(placement,pos,actualWidth,actualHeight)
557this.applyPlacement(calculatedOffset,placement)
558var complete=function(){var prevHoverState=that.hoverState
559that.$element.trigger('shown.bs.'+that.type)
560that.hoverState=null
561if(prevHoverState=='out')that.leave(that)}
562$.support.transition&&this.$tip.hasClass('fade')?$tip.one('bsTransitionEnd',complete).emulateTransitionEnd(Tooltip.TRANSITION_DURATION):complete()}}
563Tooltip.prototype.applyPlacement=function(offset,placement){var $tip=this.tip()
564var width=$tip[0].offsetWidth
565var height=$tip[0].offsetHeight
566var marginTop=parseInt($tip.css('margin-top'),10)
567var marginLeft=parseInt($tip.css('margin-left'),10)
568if(isNaN(marginTop))marginTop=0
569if(isNaN(marginLeft))marginLeft=0
570offset.top+=marginTop
571offset.left+=marginLeft
572$.offset.setOffset($tip[0],$.extend({using:function(props){$tip.css({top:Math.round(props.top),left:Math.round(props.left)})}},offset),0)
573$tip.addClass('in')
574var actualWidth=$tip[0].offsetWidth
575var actualHeight=$tip[0].offsetHeight
576if(placement=='top'&&actualHeight!=height){offset.top=offset.top+height-actualHeight}
577var delta=this.getViewportAdjustedDelta(placement,offset,actualWidth,actualHeight)
578if(delta.left)offset.left+=delta.left
579else offset.top+=delta.top
580var isVertical=/top|bottom/.test(placement)
581var arrowDelta=isVertical?delta.left*2-width+actualWidth:delta.top*2-height+actualHeight
582var arrowOffsetPosition=isVertical?'offsetWidth':'offsetHeight'
583$tip.offset(offset)
584this.replaceArrow(arrowDelta,$tip[0][arrowOffsetPosition],isVertical)}
585Tooltip.prototype.replaceArrow=function(delta,dimension,isVertical){this.arrow().css(isVertical?'left':'top',50*(1-delta/dimension)+'%').css(isVertical?'top':'left','')}
586Tooltip.prototype.setContent=function(){var $tip=this.tip()
587var title=this.getTitle()
588if(this.options.html){if(this.options.sanitize){title=sanitizeHtml(title,this.options.whiteList,this.options.sanitizeFn)}
589$tip.find('.tooltip-inner').html(title)}else{$tip.find('.tooltip-inner').text(title)}
590$tip.removeClass('fade in top bottom left right')}
591Tooltip.prototype.hide=function(callback){var that=this
592var $tip=$(this.$tip)
593var e=$.Event('hide.bs.'+this.type)
594function complete(){if(that.hoverState!='in')$tip.detach()
595if(that.$element){that.$element.removeAttr('aria-describedby').trigger('hidden.bs.'+that.type)}
596callback&&callback()}
597this.$element.trigger(e)
598if(e.isDefaultPrevented())return
599$tip.removeClass('in')
600$.support.transition&&$tip.hasClass('fade')?$tip.one('bsTransitionEnd',complete).emulateTransitionEnd(Tooltip.TRANSITION_DURATION):complete()
601this.hoverState=null
602return this}
603Tooltip.prototype.fixTitle=function(){var $e=this.$element
604if($e.attr('title')||typeof $e.attr('data-original-title')!='string'){$e.attr('data-original-title',$e.attr('title')||'').attr('title','')}}
605Tooltip.prototype.hasContent=function(){return this.getTitle()}
606Tooltip.prototype.getPosition=function($element){$element=$element||this.$element
607var el=$element[0]
608var isBody=el.tagName=='BODY'
609var elRect=el.getBoundingClientRect()
610if(elRect.width==null){elRect=$.extend({},elRect,{width:elRect.right-elRect.left,height:elRect.bottom-elRect.top})}
611var isSvg=window.SVGElement&&el instanceof window.SVGElement
612var elOffset=isBody?{top:0,left:0}:(isSvg?null:$element.offset())
613var scroll={scroll:isBody?document.documentElement.scrollTop||document.body.scrollTop:$element.scrollTop()}
614var outerDims=isBody?{width:$(window).width(),height:$(window).height()}:null
615return $.extend({},elRect,scroll,outerDims,elOffset)}
616Tooltip.prototype.getCalculatedOffset=function(placement,pos,actualWidth,actualHeight){return placement=='bottom'?{top:pos.top+pos.height,left:pos.left+pos.width/2-actualWidth/2}:placement=='top'?{top:pos.top-actualHeight,left:pos.left+pos.width/2-actualWidth/2}:placement=='left'?{top:pos.top+pos.height/2-actualHeight/2,left:pos.left-actualWidth}:{top:pos.top+pos.height/2-actualHeight/2,left:pos.left+pos.width}}
617Tooltip.prototype.getViewportAdjustedDelta=function(placement,pos,actualWidth,actualHeight){var delta={top:0,left:0}
618if(!this.$viewport)return delta
619var viewportPadding=this.options.viewport&&this.options.viewport.padding||0
620var viewportDimensions=this.getPosition(this.$viewport)
621if(/right|left/.test(placement)){var topEdgeOffset=pos.top-viewportPadding-viewportDimensions.scroll
622var bottomEdgeOffset=pos.top+viewportPadding-viewportDimensions.scroll+actualHeight
623if(topEdgeOffset<viewportDimensions.top){delta.top=viewportDimensions.top-topEdgeOffset}else if(bottomEdgeOffset>viewportDimensions.top+viewportDimensions.height){delta.top=viewportDimensions.top+viewportDimensions.height-bottomEdgeOffset}}else{var leftEdgeOffset=pos.left-viewportPadding
624var rightEdgeOffset=pos.left+viewportPadding+actualWidth
625if(leftEdgeOffset<viewportDimensions.left){delta.left=viewportDimensions.left-leftEdgeOffset}else if(rightEdgeOffset>viewportDimensions.right){delta.left=viewportDimensions.left+viewportDimensions.width-rightEdgeOffset}}
626return delta}
627Tooltip.prototype.getTitle=function(){var title
628var $e=this.$element
629var o=this.options
630title=$e.attr('data-original-title')||(typeof o.title=='function'?o.title.call($e[0]):o.title)
631return title}
632Tooltip.prototype.getUID=function(prefix){do prefix+=~~(Math.random()*1000000)
633while(document.getElementById(prefix))
634return prefix}
635Tooltip.prototype.tip=function(){if(!this.$tip){this.$tip=$(this.options.template)
636if(this.$tip.length!=1){throw new Error(this.type+' `template` option must consist of exactly 1 top-level element!')}}
637return this.$tip}
638Tooltip.prototype.arrow=function(){return(this.$arrow=this.$arrow||this.tip().find('.tooltip-arrow'))}
639Tooltip.prototype.enable=function(){this.enabled=true}
640Tooltip.prototype.disable=function(){this.enabled=false}
641Tooltip.prototype.toggleEnabled=function(){this.enabled=!this.enabled}
642Tooltip.prototype.toggle=function(e){var self=this
643if(e){self=$(e.currentTarget).data('bs.'+this.type)
644if(!self){self=new this.constructor(e.currentTarget,this.getDelegateOptions())
645$(e.currentTarget).data('bs.'+this.type,self)}}
646if(e){self.inState.click=!self.inState.click
647if(self.isInStateTrue())self.enter(self)
648else self.leave(self)}else{self.tip().hasClass('in')?self.leave(self):self.enter(self)}}
649Tooltip.prototype.destroy=function(){var that=this
650clearTimeout(this.timeout)
651this.hide(function(){that.$element.off('.'+that.type).removeData('bs.'+that.type)
652if(that.$tip){that.$tip.detach()}
653that.$tip=null
654that.$arrow=null
655that.$viewport=null
656that.$element=null})}
657Tooltip.prototype.sanitizeHtml=function(unsafeHtml){return sanitizeHtml(unsafeHtml,this.options.whiteList,this.options.sanitizeFn)}
658function Plugin(option){return this.each(function(){var $this=$(this)
659var data=$this.data('bs.tooltip')
660var options=typeof option=='object'&&option
661if(!data&&/destroy|hide/.test(option))return
662if(!data)$this.data('bs.tooltip',(data=new Tooltip(this,options)))
663if(typeof option=='string')data[option]()})}
664var old=$.fn.tooltip
665$.fn.tooltip=Plugin
666$.fn.tooltip.Constructor=Tooltip
667$.fn.tooltip.noConflict=function(){$.fn.tooltip=old
668return this}}(jQuery);+function($){'use strict';var Popover=function(element,options){this.init('popover',element,options)}
669if(!$.fn.tooltip)throw new Error('Popover requires tooltip.js')
670Popover.VERSION='3.4.1'
671Popover.DEFAULTS=$.extend({},$.fn.tooltip.Constructor.DEFAULTS,{placement:'right',trigger:'click',content:'',template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'})
672Popover.prototype=$.extend({},$.fn.tooltip.Constructor.prototype)
673Popover.prototype.constructor=Popover
674Popover.prototype.getDefaults=function(){return Popover.DEFAULTS}
675Popover.prototype.setContent=function(){var $tip=this.tip()
676var title=this.getTitle()
677var content=this.getContent()
678if(this.options.html){var typeContent=typeof content
679if(this.options.sanitize){title=this.sanitizeHtml(title)
680if(typeContent==='string'){content=this.sanitizeHtml(content)}}
681$tip.find('.popover-title').html(title)
682$tip.find('.popover-content').children().detach().end()[typeContent==='string'?'html':'append'](content)}else{$tip.find('.popover-title').text(title)
683$tip.find('.popover-content').children().detach().end().text(content)}
684$tip.removeClass('fade top bottom left right in')
685if(!$tip.find('.popover-title').html())$tip.find('.popover-title').hide()}
686Popover.prototype.hasContent=function(){return this.getTitle()||this.getContent()}
687Popover.prototype.getContent=function(){var $e=this.$element
688var o=this.options
689return $e.attr('data-content')||(typeof o.content=='function'?o.content.call($e[0]):o.content)}
690Popover.prototype.arrow=function(){return(this.$arrow=this.$arrow||this.tip().find('.arrow'))}
691function Plugin(option){return this.each(function(){var $this=$(this)
692var data=$this.data('bs.popover')
693var options=typeof option=='object'&&option
694if(!data&&/destroy|hide/.test(option))return
695if(!data)$this.data('bs.popover',(data=new Popover(this,options)))
696if(typeof option=='string')data[option]()})}
697var old=$.fn.popover
698$.fn.popover=Plugin
699$.fn.popover.Constructor=Popover
700$.fn.popover.noConflict=function(){$.fn.popover=old
701return this}}(jQuery);+function($){'use strict';function ScrollSpy(element,options){this.$body=$(document.body)
702this.$scrollElement=$(element).is(document.body)?$(window):$(element)
703this.options=$.extend({},ScrollSpy.DEFAULTS,options)
704this.selector=(this.options.target||'')+' .nav li > a'
705this.offsets=[]
706this.targets=[]
707this.activeTarget=null
708this.scrollHeight=0
709this.$scrollElement.on('scroll.bs.scrollspy',$.proxy(this.process,this))
710this.refresh()
711this.process()}
712ScrollSpy.VERSION='3.4.1'
713ScrollSpy.DEFAULTS={offset:10}
714ScrollSpy.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)}
715ScrollSpy.prototype.refresh=function(){var that=this
716var offsetMethod='offset'
717var offsetBase=0
718this.offsets=[]
719this.targets=[]
720this.scrollHeight=this.getScrollHeight()
721if(!$.isWindow(this.$scrollElement[0])){offsetMethod='position'
722offsetBase=this.$scrollElement.scrollTop()}
723this.$body.find(this.selector).map(function(){var $el=$(this)
724var href=$el.data('target')||$el.attr('href')
725var $href=/^#./.test(href)&&$(href)
726return($href&&$href.length&&$href.is(':visible')&&[[$href[offsetMethod]().top+offsetBase,href]])||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){that.offsets.push(this[0])
727that.targets.push(this[1])})}
728ScrollSpy.prototype.process=function(){var scrollTop=this.$scrollElement.scrollTop()+this.options.offset
729var scrollHeight=this.getScrollHeight()
730var maxScroll=this.options.offset+scrollHeight-this.$scrollElement.height()
731var offsets=this.offsets
732var targets=this.targets
733var activeTarget=this.activeTarget
734var i
735if(this.scrollHeight!=scrollHeight){this.refresh()}
736if(scrollTop>=maxScroll){return activeTarget!=(i=targets[targets.length-1])&&this.activate(i)}
737if(activeTarget&&scrollTop<offsets[0]){this.activeTarget=null
738return this.clear()}
739for(i=offsets.length;i--;){activeTarget!=targets[i]&&scrollTop>=offsets[i]&&(offsets[i+1]===undefined||scrollTop<offsets[i+1])&&this.activate(targets[i])}}
740ScrollSpy.prototype.activate=function(target){this.activeTarget=target
741this.clear()
742var selector=this.selector+'[data-target="'+target+'"],'+
743this.selector+'[href="'+target+'"]'
744var active=$(selector).parents('li').addClass('active')
745if(active.parent('.dropdown-menu').length){active=active.closest('li.dropdown').addClass('active')}
746active.trigger('activate.bs.scrollspy')}
747ScrollSpy.prototype.clear=function(){$(this.selector).parentsUntil(this.options.target,'.active').removeClass('active')}
748function Plugin(option){return this.each(function(){var $this=$(this)
749var data=$this.data('bs.scrollspy')
750var options=typeof option=='object'&&option
751if(!data)$this.data('bs.scrollspy',(data=new ScrollSpy(this,options)))
752if(typeof option=='string')data[option]()})}
753var old=$.fn.scrollspy
754$.fn.scrollspy=Plugin
755$.fn.scrollspy.Constructor=ScrollSpy
756$.fn.scrollspy.noConflict=function(){$.fn.scrollspy=old
757return this}
758$(window).on('load.bs.scrollspy.data-api',function(){$('[data-spy="scroll"]').each(function(){var $spy=$(this)
759Plugin.call($spy,$spy.data())})})}(jQuery);+function($){'use strict';var Tab=function(element){this.element=$(element)}
760Tab.VERSION='3.4.1'
761Tab.TRANSITION_DURATION=150
762Tab.prototype.show=function(){var $this=this.element
763var $ul=$this.closest('ul:not(.dropdown-menu)')
764var selector=$this.data('target')
765if(!selector){selector=$this.attr('href')
766selector=selector&&selector.replace(/.*(?=#[^\s]*$)/,'')}
767if($this.parent('li').hasClass('active'))return
768var $previous=$ul.find('.active:last a')
769var hideEvent=$.Event('hide.bs.tab',{relatedTarget:$this[0]})
770var showEvent=$.Event('show.bs.tab',{relatedTarget:$previous[0]})
771$previous.trigger(hideEvent)
772$this.trigger(showEvent)
773if(showEvent.isDefaultPrevented()||hideEvent.isDefaultPrevented())return
774var $target=$(document).find(selector)
775this.activate($this.closest('li'),$ul)
776this.activate($target,$target.parent(),function(){$previous.trigger({type:'hidden.bs.tab',relatedTarget:$this[0]})
777$this.trigger({type:'shown.bs.tab',relatedTarget:$previous[0]})})}
778Tab.prototype.activate=function(element,container,callback){var $active=container.find('> .active')
779var transition=callback&&$.support.transition&&($active.length&&$active.hasClass('fade')||!!container.find('> .fade').length)
780function next(){$active.removeClass('active').find('> .dropdown-menu > .active').removeClass('active').end().find('[data-toggle="tab"]').attr('aria-expanded',false)
781element.addClass('active').find('[data-toggle="tab"]').attr('aria-expanded',true)
782if(transition){element[0].offsetWidth
783element.addClass('in')}else{element.removeClass('fade')}
784if(element.parent('.dropdown-menu').length){element.closest('li.dropdown').addClass('active').end().find('[data-toggle="tab"]').attr('aria-expanded',true)}
785callback&&callback()}
786$active.length&&transition?$active.one('bsTransitionEnd',next).emulateTransitionEnd(Tab.TRANSITION_DURATION):next()
787$active.removeClass('in')}
788function Plugin(option){return this.each(function(){var $this=$(this)
789var data=$this.data('bs.tab')
790if(!data)$this.data('bs.tab',(data=new Tab(this)))
791if(typeof option=='string')data[option]()})}
792var old=$.fn.tab
793$.fn.tab=Plugin
794$.fn.tab.Constructor=Tab
795$.fn.tab.noConflict=function(){$.fn.tab=old
796return this}
797var clickHandler=function(e){e.preventDefault()
798Plugin.call($(this),'show')}
799$(document).on('click.bs.tab.data-api','[data-toggle="tab"]',clickHandler).on('click.bs.tab.data-api','[data-toggle="pill"]',clickHandler)}(jQuery);+function($){'use strict';var Affix=function(element,options){this.options=$.extend({},Affix.DEFAULTS,options)
800var target=this.options.target===Affix.DEFAULTS.target?$(this.options.target):$(document).find(this.options.target)
801this.$target=target.on('scroll.bs.affix.data-api',$.proxy(this.checkPosition,this)).on('click.bs.affix.data-api',$.proxy(this.checkPositionWithEventLoop,this))
802this.$element=$(element)
803this.affixed=null
804this.unpin=null
805this.pinnedOffset=null
806this.checkPosition()}
807Affix.VERSION='3.4.1'
808Affix.RESET='affix affix-top affix-bottom'
809Affix.DEFAULTS={offset:0,target:window}
810Affix.prototype.getState=function(scrollHeight,height,offsetTop,offsetBottom){var scrollTop=this.$target.scrollTop()
811var position=this.$element.offset()
812var targetHeight=this.$target.height()
813if(offsetTop!=null&&this.affixed=='top')return scrollTop<offsetTop?'top':false
814if(this.affixed=='bottom'){if(offsetTop!=null)return(scrollTop+this.unpin<=position.top)?false:'bottom'
815return(scrollTop+targetHeight<=scrollHeight-offsetBottom)?false:'bottom'}
816var initializing=this.affixed==null
817var colliderTop=initializing?scrollTop:position.top
818var colliderHeight=initializing?targetHeight:height
819if(offsetTop!=null&&scrollTop<=offsetTop)return'top'
820if(offsetBottom!=null&&(colliderTop+colliderHeight>=scrollHeight-offsetBottom))return'bottom'
821return false}
822Affix.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset
823this.$element.removeClass(Affix.RESET).addClass('affix')
824var scrollTop=this.$target.scrollTop()
825var position=this.$element.offset()
826return(this.pinnedOffset=position.top-scrollTop)}
827Affix.prototype.checkPositionWithEventLoop=function(){setTimeout($.proxy(this.checkPosition,this),1)}
828Affix.prototype.checkPosition=function(){if(!this.$element.is(':visible'))return
829var height=this.$element.height()
830var offset=this.options.offset
831var offsetTop=offset.top
832var offsetBottom=offset.bottom
833var scrollHeight=Math.max($(document).height(),$(document.body).height())
834if(typeof offset!='object')offsetBottom=offsetTop=offset
835if(typeof offsetTop=='function')offsetTop=offset.top(this.$element)
836if(typeof offsetBottom=='function')offsetBottom=offset.bottom(this.$element)
837var affix=this.getState(scrollHeight,height,offsetTop,offsetBottom)
838if(this.affixed!=affix){if(this.unpin!=null)this.$element.css('top','')
839var affixType='affix'+(affix?'-'+affix:'')
840var e=$.Event(affixType+'.bs.affix')
841this.$element.trigger(e)
842if(e.isDefaultPrevented())return
843this.affixed=affix
844this.unpin=affix=='bottom'?this.getPinnedOffset():null
845this.$element.removeClass(Affix.RESET).addClass(affixType).trigger(affixType.replace('affix','affixed')+'.bs.affix')}
846if(affix=='bottom'){this.$element.offset({top:scrollHeight-height-offsetBottom})}}
847function Plugin(option){return this.each(function(){var $this=$(this)
848var data=$this.data('bs.affix')
849var options=typeof option=='object'&&option
850if(!data)$this.data('bs.affix',(data=new Affix(this,options)))
851if(typeof option=='string')data[option]()})}
852var old=$.fn.affix
853$.fn.affix=Plugin
854$.fn.affix.Constructor=Affix
855$.fn.affix.noConflict=function(){$.fn.affix=old
856return this}
857$(window).on('load',function(){$('[data-spy="affix"]').each(function(){var $spy=$(this)
858var data=$spy.data()
859data.offset=data.offset||{}
860if(data.offsetBottom!=null)data.offset.bottom=data.offsetBottom
861if(data.offsetTop!=null)data.offset.top=data.offsetTop
862Plugin.call($spy,data)})})}(jQuery);;jQuery(function($){$.fn.authchoice=function(options){options=$.extend({triggerSelector:'a.auth-link',popup:{resizable:'yes',scrollbars:'no',toolbar:'no',menubar:'no',location:'no',directories:'no',status:'yes',width:450,height:380}},options);return this.each(function(){var $container=$(this);$container.find(options.triggerSelector).on('click',function(e){e.preventDefault();
862var authChoicePopup=$container.data('authChoicePopup');if(authChoicePopup){authChoicePopup.close();}
863var url=this.href;var popupOptions=$.extend({},options.popup);var localPopupWidth=this.getAttribute('data-popup-width');if(localPopupWidth){popupOptions.width=localPopupWidth;}
864var localPopupHeight=this.getAttribute('data-popup-height');if(localPopupWidth){popupOptions.height=localPopupHeight;}
865popupOptions.left=(window.screen.width-popupOptions.width)/2;popupOptions.top=(window.screen.height-popupOptions.height)/2;var popupFeatureParts=[];for(var propName in popupOptions){if(popupOptions.hasOwnProperty(propName)){popupFeatureParts.push(propName+'='+popupOptions[propName]);}}
866var popupFeature=popupFeatureParts.join(',');authChoicePopup=window.open(url,'yii_auth_choice',popupFeature);authChoicePopup.focus();$container.data('authChoicePopup',authChoicePopup);});});};});;function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_nonIterableSpread();}
867function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance");}
868function _iterableToArray(iter){if(Symbol.iterator in Object(iter)||Object.prototype.toString.call(iter)==="[object Arguments]")return Array.from(iter);}
869function _arrayWithoutHoles(arr){if(Array.isArray(arr)){for(var i=0,arr2=new Array(arr.length);i<arr.length;i++){arr2[i]=arr[i];}return arr2;}}
870function _extends(){_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};return _extends.apply(this,arguments);}
871function _typeof(obj){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(obj){return typeof obj;};}else{_typeof=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};}return _typeof(obj);}
872(function(global,factory){(typeof exports==="undefined"?"undefined":_typeof(exports))==='object'&&typeof module!=='undefined'?module.exports=factory():typeof define==='function'&&define.amd?define(factory):global.LazyLoad=factory();})(this,function(){'use strict';var runningOnBrowser=typeof window!=="undefined";var isBot=runningOnBrowser&&!("onscroll"in window)||typeof navigator!=="undefined"&&/(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent);var supportsIntersectionObserver=runningOnBrowser&&"IntersectionObserver"in window;var supportsClassList=runningOnBrowser&&"classList"in document.createElement("p");var defaultSettings={elements_selector:"img",container:isBot||runningOnBrowser?document:null,threshold:300,thresholds:null,data_src:"src",data_srcset:"srcset",data_sizes:"sizes",data_bg:"bg",class_loading:"loading",class_loaded:"loaded",class_error:"error",load_delay:0,auto_unobserve:true,callback_enter:null,callback_exit:null,callback_reveal:null,callback_loaded:null,callback_error:null,callback_finish:null,use_native:false};var getInstanceSettings=function getInstanceSettings(customSettings){return _extends({},defaultSettings,customSettings);};var createInstance=function createInstance(classObj,options){var event;var eventString="LazyLoad::Initialized";var instance=new classObj(options);try{event=new CustomEvent(eventString,{detail:{instance:instance}});}catch(err){event=document.createEvent("CustomEvent");event.initCustomEvent(eventString,false,false,{instance:instance});}
873window.dispatchEvent(event);};function autoInitialize(classObj,options){if(!options){return;}
874if(!options.length){createInstance(classObj,options);}else{for(var i=0,optionsItem;optionsItem=options[i];i+=1){createInstance(classObj,optionsItem);}}}
875var dataPrefix="data-";var processedDataName="was-processed";var timeoutDataName="ll-timeout";var trueString="true";var getData=function getData(element,attribute){return element.getAttribute(dataPrefix+attribute);};var setData=function setData(element,attribute,value){var attrName=dataPrefix+attribute;if(value===null){element.removeAttribute(attrName);return;}
876element.setAttribute(attrName,value);};var resetWasProcessedData=function resetWasProcessedData(element){return setData(element,processedDataName,null);};var setWasProcessedData=function setWasProcessedData(element){return setData(element,processedDataName,trueString);};var getWasProcessedData=function getWasProcessedData(element){return getData(element,processedDataName)===trueString;};var setTimeoutData=function setTimeoutData(element,value){return setData(element,timeoutDataName,value);};var getTimeoutData=function getTimeoutData(element){return getData(element,timeoutDataName);};var purgeProcessedElements=function purgeProcessedElements(elements){return elements.filter(function(element){return!getWasProcessedData(element);});};var purgeOneElement=function purgeOneElement(elements,elementToPurge){return elements.filter(function(element){return element!==elementToPurge;});};var safeCallback=function safeCallback(callback,arg1,arg2,arg3){if(!callback){return;}
877if(arg3!==undefined){callback(arg1,arg2,arg3);return;}
878if(arg2!==undefined){callback(arg1,arg2);return;}
879callback(arg1);};var updateLoadingCount=function updateLoadingCount(instance,plusMinus){instance._loadingCount+=plusMinus;if(instance._elements.length===0&&instance._loadingCount===0){safeCallback(instance._settings.callback_finish,instance);}};var getSourceTags=function getSourceTags(parentTag){var sourceTags=[];for(var i=0,childTag;childTag=parentTag.children[i];i+=1){if(childTag.tagName==="SOURCE"){sourceTags.push(childTag);}}
880return sourceTags;};var setAttributeIfValue=function setAttributeIfValue(element,attrName,value){if(!value){return;}
881element.setAttribute(attrName,value);};var setImageAttributes=function setImageAttributes(element,settings){setAttributeIfValue(element,"sizes",getData(element,settings.data_sizes));setAttributeIfValue(element,"srcset",getData(element,settings.data_srcset));setAttributeIfValue(element,"src",getData(element,settings.data_src));};var setSourcesImg=function setSourcesImg(element,settings){var parent=element.parentNode;if(parent&&parent.tagName==="PICTURE"){var sourceTags=getSourceTags(parent);
881sourceTags.forEach(function(sourceTag){setImageAttributes(sourceTag,settings);});}
882setImageAttributes(element,settings);};var setSourcesIframe=function setSourcesIframe(element,settings){setAttributeIfValue(element,"src",getData(element,settings.data_src));};var setSourcesVideo=function setSourcesVideo(element,settings){var sourceTags=getSourceTags(element);sourceTags.forEach(function(sourceTag){setAttributeIfValue(sourceTag,"src",getData(sourceTag,settings.data_src));});setAttributeIfValue(element,"src",getData(element,settings.data_src));element.load();};var setSourcesBgImage=function setSourcesBgImage(element,settings){var srcDataValue=getData(element,settings.data_src);var bgDataValue=getData(element,settings.data_bg);if(srcDataValue){element.style.backgroundImage="url(\"".concat(srcDataValue,"\")");}
883if(bgDataValue){element.style.backgroundImage=bgDataValue;}};var setSourcesFunctions={IMG:setSourcesImg,IFRAME:setSourcesIframe,VIDEO:setSourcesVideo};var setSources=function setSources(element,instance){var settings=instance._settings;var tagName=element.tagName;var setSourcesFunction=setSourcesFunctions[tagName];if(setSourcesFunction){setSourcesFunction(element,settings);updateLoadingCount(instance,1);instance._elements=purgeOneElement(instance._elements,element);return;}
884setSourcesBgImage(element,settings);};var addClass=function addClass(element,className){if(supportsClassList){element.classList.add(className);return;}
885element.className+=(element.className?" ":"")+className;};var removeClass=function removeClass(element,className){if(supportsClassList){element.classList.remove(className);return;}
886element.className=element.className.replace(new RegExp("(^|\\s+)"+className+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,"");};var genericLoadEventName="load";var mediaLoadEventName="loadeddata";var errorEventName="error";var addEventListener=function addEventListener(element,eventName,handler){element.addEventListener(eventName,handler);};var removeEventListener=function removeEventListener(element,eventName,handler){element.removeEventListener(eventName,handler);};var addEventListeners=function addEventListeners(element,loadHandler,errorHandler){addEventListener(element,genericLoadEventName,loadHandler);addEventListener(element,mediaLoadEventName,loadHandler);addEventListener(element,errorEventName,errorHandler);};var removeEventListeners=function removeEventListeners(element,loadHandler,errorHandler){removeEventListener(element,genericLoadEventName,loadHandler);removeEventListener(element,mediaLoadEventName,loadHandler);removeEventListener(element,errorEventName,errorHandler);};var eventHandler=function eventHandler(event,success,instance){var settings=instance._settings;var className=success?settings.class_loaded:settings.class_error;var callback=success?settings.callback_loaded:settings.callback_error;var element=event.target;removeClass(element,settings.class_loading);addClass(element,className);safeCallback(callback,element,instance);updateLoadingCount(instance,-1);};var addOneShotEventListeners=function addOneShotEventListeners(element,instance){var loadHandler=function loadHandler(event){eventHandler(event,true,instance);removeEventListeners(element,loadHandler,errorHandler);};var errorHandler=function errorHandler(event){eventHandler(event,false,instance);removeEventListeners(element,loadHandler,errorHandler);};addEventListeners(element,loadHandler,errorHandler);};var managedTags=["IMG","IFRAME","VIDEO"];var onEnter=function onEnter(element,entry,instance){var settings=instance._settings;safeCallback(settings.callback_enter,element,entry,instance);if(!settings.load_delay){revealAndUnobserve(element,instance);return;}
887delayLoad(element,instance);};var revealAndUnobserve=function revealAndUnobserve(element,instance){var observer=instance._observer;revealElement(element,instance);if(observer&&instance._settings.auto_unobserve){observer.unobserve(element);}};var onExit=function onExit(element,entry,instance){var settings=instance._settings;safeCallback(settings.callback_exit,element,entry,instance);if(!settings.load_delay){return;}
888cancelDelayLoad(element);};var cancelDelayLoad=function cancelDelayLoad(element){var timeoutId=getTimeoutData(element);if(!timeoutId){return;}
889clearTimeout(timeoutId);setTimeoutData(element,null);};var delayLoad=function delayLoad(element,instance){var loadDelay=instance._settings.load_delay;var timeoutId=getTimeoutData(element);if(timeoutId){return;}
890timeoutId=setTimeout(function(){revealAndUnobserve(element,instance);cancelDelayLoad(element);},loadDelay);setTimeoutData(element,timeoutId);};var revealElement=function revealElement(element,instance,force){var settings=instance._settings;if(!force&&getWasProcessedData(element)){return;}
891if(managedTags.indexOf(element.tagName)>-1){addOneShotEventListeners(element,instance);addClass(element,settings.class_loading);}
892setSources(element,instance);setWasProcessedData(element);safeCallback(settings.callback_reveal,element,instance);safeCallback(settings.callback_set,element,instance);};var isIntersecting=function isIntersecting(entry){return entry.isIntersecting||entry.intersectionRatio>0;};var getObserverSettings=function getObserverSettings(settings){return{root:settings.container===document?null:settings.container,rootMargin:settings.thresholds||settings.threshold+"px"};};var setObserver=function setObserver(instance){if(!supportsIntersectionObserver){return false;}
893instance._observer=new IntersectionObserver(function(entries){entries.forEac
893h(function(entry){return isIntersecting(entry)?onEnter(entry.target,entry,instance):onExit(entry.target,entry,instance);});},getObserverSettings(instance._settings));return true;};var nativeLazyTags=["IMG","IFRAME"];var shouldUseNative=function shouldUseNative(settings){return settings.use_native&&"loading"in HTMLImageElement.prototype;};var loadAllNative=function loadAllNative(instance){instance._elements.forEach(function(element){if(nativeLazyTags.indexOf(element.tagName)===-1){return;}
894element.setAttribute("loading","lazy");revealElement(element,instance);});};var nodeSetToArray=function nodeSetToArray(nodeSet){return Array.prototype.slice.call(nodeSet);};var queryElements=function queryElements(settings){return settings.container.querySelectorAll(settings.elements_selector);};var getElements=function getElements(elements,settings){return purgeProcessedElements(nodeSetToArray(elements||queryElements(settings)));};var retryLazyLoad=function retryLazyLoad(instance){var settings=instance._settings;var errorElements=settings.container.querySelectorAll("."+settings.class_error);_toConsumableArray(errorElements).forEach(function(element){removeClass(element,settings.class_error);resetWasProcessedData(element);});instance.update();};var setOnlineCheck=function setOnlineCheck(instance){if(!runningOnBrowser){return;}
895window.addEventListener("online",function(event){retryLazyLoad(instance);});};var LazyLoad=function LazyLoad(customSettings,elements){this._settings=getInstanceSettings(customSettings);this._loadingCount=0;setObserver(this);this.update(elements);setOnlineCheck(this);};LazyLoad.prototype={update:function update(elements){var _this=this;var settings=this._settings;this._elements=getElements(elements,settings);if(isBot||!this._observer){this.loadAll();return;}
896if(shouldUseNative(settings)){loadAllNative(this);this._elements=getElements(elements,settings);}
897this._elements.forEach(function(element){_this._observer.observe(element);});},destroy:function destroy(){var _this2=this;if(this._observer){this._elements.forEach(function(element){_this2._observer.unobserve(element);});this._observer=null;}
898this._elements=null;this._settings=null;},load:function load(element,force){revealElement(element,this,force);},loadAll:function loadAll(){var _this3=this;this._elements.forEach(function(element){revealAndUnobserve(element,_this3);});}};if(runningOnBrowser){autoInitialize(LazyLoad,window.lazyLoadOptions);}
899return LazyLoad;});;(function(e){if(typeof define==="function"&&define.amd){define(["jquery"],e)}else{e(jQuery)}})(function(e){function n(e){return u.raw?e:encodeURIComponent(e)}function r(e){return u.raw?e:decodeURIComponent(e)}function i(e){return n(u.json?JSON.stringify(e):String(e))}function s(e){if(e.indexOf('"')===0){e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")}try{e=decodeURIComponent(e.replace(t," "));return u.json?JSON.parse(e):e}catch(n){}}function o(t,n){var r=u.raw?t:s(t);return e.isFunction(n)?n(r):r}var t=/\+/g;var u=e.cookie=function(t,s,a){if(s!==undefined&&!e.isFunction(s)){a=e.extend({},u.defaults,a);if(typeof a.expires==="number"){var f=a.expires,l=a.expires=new Date;l.setTime(+l+f*864e5)}return document.cookie=[n(t),"=",i(s),a.expires?"; expires="+a.expires.toUTCString():"",a.path?"; path="+a.path:"",a.domain?"; domain="+a.domain:"",a.secure?"; secure":""].join("")}var c=t?undefined:{};var h=document.cookie?document.cookie.split("; "):[];for(var p=0,d=h.length;p<d;p++){var v=h[p].split("=");var m=r(v.shift());var g=v.join("=");if(t&&t===m){c=o(g,s);break}if(!t&&(g=o(g))!==undefined){c[m]=g}}return c};u.defaults={};e.removeCookie=function(t,n){if(e.cookie(t)===undefined){return false}e.cookie(t,"",e.extend({},n,{expires:-1}));return!e.cookie(t)}});String.prototype.replaceAll=function(search,replacement){var target=this;return target.replace(new RegExp(search,'g'),replacement);};function isNumeric(n){return!isNaN(parseFloat(n))&&isFinite(n);}
900jQuery.wordStats={unsortedWords:null,latinOnly:true,sortedWords:null,keywords:1,topWords:null,topWeights:null,_computed:false,useStopWords:true,filterWords:function(str){var returnWords=[];str=str.trim();if(str&&str.length>1){var words=this.splitWords(str.toLowerCase());for(var i=0;i<words.length;i++){var word=words[i];if(word.slice(-1)=="'"){word=word.replaceAll("'",'');}
901if(word.slice(0,1)=="'"){word=word.replaceAll("'",'');}
902word=word.replaceAll("–",'-');if((word.length>1||(word.length==1&&(word.toLowerCase()=='i'||word.toLowerCase()=='a')))&&(!this.stopWords[word]||this.useStopWords==true)&&isNumeric(word)==false){returnWords.push(word)}}}
903return returnWords;},splitSentences:function(str){return str.split(/[.!?\n]/);},createNGrams:function(words){var ngrams=[];for(var i=0;i<words.length-(this.keywords-1);i++){var ngram=[];for(var j=0;j<this.keywords;j++){ngram.push(words[j+i]);}
904ngrams.push(ngram.join(" "));}
905return ngrams;},addWords:function(str,weight){var sentences=this.splitSentences(str);for(var i=0;i<sentences.length;i++){var filteredWords=this.filterWords(sentences[i]);var ngramArray=this.createNGrams(filteredWords);this.countNGrams(ngramArray,weight);}},countNGrams:function(ngrams,weight){for(var x=0,y=ngrams.length;x<y;x++){var ngram=ngrams[x];if(this.unsortedWords[ngram]){this.unsortedWords[ngram].weight+=weight;}else{this.unsortedWords[ngram]={'word':ngram,'weight':weight};}}},addWordsFromTextNodes:function(node,weight){var nodes=node.childNodes;for(var i=0,j=nodes.length;i<j;i++){if(nodes[i].nodeType==3)this.addWords(nodes[i].nodeValue,weight);}},testChar:function(c){if(this.latinOnly==true)
906{return((c==39)||(c>=97&&c<=122)||(c>=128&&c<=151)||(c>=160&&c<=164)||(c>=48&&c<=57)||(c>=224&&c<=246)||(c>=249&&c<=255)||c==8211||c==45);}
907else
908{return c!=32&&c!=33&&c!=8217&&c!=8592&&c!=34&&c!=35&&c!=36&&c!=37&&c!=38&&c!=40&&c!=41&&c!=42&&c!=43&&c!=44&&c!=45&&c!=46&&c!=47&&c!=58&&c!=59&&c!=60&&c!=61&&c!=62&&c!=63;}},splitWords:function(words){var w=new Array(),str='';for(var i=0,j=words.length;i<j;i++){c=words.charCodeAt(i);if(this.testChar(c)){str+=words.substring(i,i+1);}
909else{w.push(str);str='';}}
910if(str.length>0)w.push(str);return(w);},computeWords:function(elem){if(!elem)elem=window.document;this.unsortedWords={};if(elem.is("textarea"))
911{var text=editor.replaceDivToEn(elem.val());text=text.replace(/\s\-+/g,' ').replace(/\-+\s/g,' ').replaceAll("’","'").replaceAll("‘","'").replaceAll("“",'"').replaceAll("”",'"').replaceAll("–",'-').replaceAll("…",'...');this.addWords(text,1);return;}
912else if(elem.is("div[contenteditable='true']")||elem.is("div[contenteditable='false']")){var text=elem.html();text=text.replace(/<br\s*[\/]?>/gi," \n").replace(/<div>/gi," \n").replace(/<\s*[\/]?div>/gi,"").replace(/&nbsp;/gi," ").replace(/&amp;/gi,"");var tmp=document.createElement("DIV");text=text.replace(/&lt;/gi,' <').replace(/&gt;/gi,'>');tmp.innerHTML=text;text=tmp.textContent||tmp.innerText||"";this.addWords(text,1);return;}
913this.addWords($('title',elem).text(),20);wordstats=this;$('h1',elem).each(function(){wordstats.addWordsFromTextNodes($(this).get(0),15);});$('h2',elem).each(function(){wordstats.addWordsFromTextNodes($(this).get(0),10);});$('h3, h4, h5, h6',elem).each(function(){wordstats.addWordsFromTextNodes($(this).get(0),5);});$('strong, b, em, i',elem).each(function(){wordstats.addWordsFromTextNodes($(this).get(0),3);});$('p, div, th, td, li, a, span',elem).each(function(){wordstats.addWordsFromTextNodes($(this).get(0),2);});$('img',elem).each(function(){wordstats.addWords($(this).attr('alt'),1);wordstats.addWords($(this).attr('title'),1);});this._computed=true;},computeTopWords:function(count,elem){if(!this._computed){this.computeWords(elem);}
914this.topWords=[];this.topWeights=[];this.sortWords();for(var i=0;i<Math.min(count,this.sortedWords.length);i++){this.topWords.push(this.sortedWords[i].word);this.topWeights.push(this.sortedWords[i].weight);}},sortWords:function(){this.sortedWords=[];for(word in this.unsortedWords){this.sortedWords.push(this.unsortedWords[word]);}
915this.sortedWords.sort(function(a,b){if(a.weight<b.weight){return 1}else if(a.weight>b.weight){return-1}else{return 0}});},clear:function(){this.unsortedWords=this.sortedWords=this.topWords=this.topWeights=null;this._computed=false;}};jQuery.wordStats.stopWords={"1":true,"2":true,"3":true,"4":true,"5":true,"6":true,"7":true,"8":true,"9":true,"a":true,"b":true,"c":true,"d":true,"e":true,"f":true,"g":true,"h":true,"i":true,"j":true,"&":true,"am":true,"an":true,"and":true,"are":true,"aren't":true,"as":true,"at":true,"be":true,"but":true,"by":true,"can":true,"cannot":true,"cant":true,"can't":true,"does":true,"doesn't":true,"doing":true,"done":true,"don't":true,"did":true,"didn't":true,"do":true,"etc":true,"ex":true,"for":true,"from":true,"got":true,"had":true,"hadn't":true,"has":true,"hasn't":true,"have":true,"haven't":true,"having":true,"he":true,"he'd":true,"he'll":true,"her":true,"hers":true,"herself":true,"he's":true,"him":true,"himself":true,"his":true,"i'd":true,"if":true,"i'll":true,"i'm":true,"in":true,"into":true,"is":true,"isn't":true,"it":true,"it'd":true,"it'll":true,"its":true,"it's":true,"itself":true,"i've":true,"me":true,"mr":true,"mrs":true,"my":true,"myself":true,"no":true,"not":true,"of":true,"off":true,"oh":true,"ok":true,"okay":true,"on":true,"or":true,"our":true,"ours":true,"ourselves":true,"out":true,"per":true,"said":true,"she":true,"she'd":true,"she'll":true,"she's":true,"so":true,"than":true,"that":true,"that'll":true,"thats":true,"that's":true,"that've":true,"the":true,"their":true,"theirs":true,"them":true,"themselves":true,"then":true,"there":true,"there'd":true,"there'll":true,"there's":true,"these":true,"they":true,"they'd":true,"they'll":true,"they're":true,"they've":true,"this":true,"those":true,"to":true,"too":true,"up":true,"us":true,"use":true,"used":true,"uses":true,"was":true,"wasn't":true,"way":true,"we":true,"we'd":true,"well":true,"we'll":true,"went":true,"were":true,"we're":true,"weren't":true,"we've":true,"what":true,"what's":true,"where":true,"where's":true,"which":true,"who":true,"who'd":true,"who'll":true,"who's":true,"whose":true,"why":true,"will":true,"with":true,"won't":true,"would":true,"wouldn't":true,"yes":true,"yet":true,"you":true,"you'd":true,"you'll":true,"your":true,"you're":true,"yours":true,"yourself":true,"yourselves":true,"you've":true,'liam':true,'noah':true,'ethan':true,'mason':true,'lucas':true,'logan':true,'oliver':true,'jackson':true,'aiden':true,'jacob':true,'elijah':true,'james':true,'benjamin':true,'alexander':true,'jack':true,'lu
915ke':true,'carter':true,'william':true,'michael':true,'daniel':true,'owen':true,'gabriel':true,'henry':true,'matthew':true,'wyatt':true,'jayden':true,'nathan':true,'isaac':true,'caleb':true,'ryan':true,'sebastian':true,'andrew':true,'david':true,'dylan':true,'connor':true,'samuel':true,'jaxon':true,'eli':true,'grayson':true,'joshua':true,'hunter':true,'landon':true,'levi':true,'joseph':true,'anthony':true,'julian':true,'max':true,'john':true,'adam':true,'cameron':true,'gavin':true,'christian':true,'evan':true,'isaiah':true,'leo':true,'lincoln':true,'nolan':true,'thomas':true,'hudson':true,'dominic':true,'brayden':true,'christopher':true,'colton':true,'parker':true,'austin':true,'aaron':true,'nicholas':true,'muhammad':true,'adrian':true,'tyler':true,'cooper':true,'josiah':true,'chase':true,'jonathan':true,'jace':true,'asher':true,'jeremiah':true,'jordan':true,'ian':true,'jaxson':true,'alex':true,'easton':true,'zachary':true,'ezra':true,'carson':true,'miles':true,'blake':true,'xavier':true,'declan':true,'cole':true,'tristan':true,'nathaniel':true,'ayden':true,'micah':true,'ryder':true,'brody':true,'harrison':true,'jason':true,'camden':true,'elias':true,'roman':true,'mateo':true,'greyson':true,'luca':true,'kai':true,'kayden':true,'vincent':true,'robert':true,'bentley':true,'bryce':true,'jude':true,'brandon':true,'jonah':true,'emmett':true,'everett':true,'wesley':true,'weston':true,'silas':true,'jake':true,'finn':true,'ben':true,'charles':true,'jameson':true,'santiago':true,'leonardo':true,'george':true,'theodore':true,'kaiden':true,'bennett':true,'xander':true,'maddox':true,'riley':true,'damian':true,'colin':true,'maxwell':true,'brantley':true,'marcus':true,'sam':true,'jax':true,'graham':true,'aidan':true,'ashton':true,'braxton':true,'theo':true,'jayce':true,'abel':true,'caden':true,'bryson':true,'kingston':true,'bradley':true,'calvin':true,'kyle':true,'ryker':true,'kaden':true,'nicolas':true,'patrick':true,'kaleb':true,'malachi':true,'angel':true,'preston':true,'dean':true,'eric':true,'miguel':true,'antonio':true,'giovanni':true,'conner':true,'avery':true,'elliott':true,'ezekiel':true,'justin':true,'kevin':true,'sean':true,'grant':true,'omar':true,'aj	':true,'ali':true,'brady':true,'ivan':true,'axel':true,'juan':true,'elliot':true,'matteo':true,'diego':true,'maverick':true,'lorenzo':true,'arthur':true,'cayden':true,'joel':true,'enzo':true,'rowan':true,'jose':true,'luis':true,'tucker':true,'paul':true,'jaden':true,'jase':true,'oscar':true,'beau':true,'beckett':true,'zane':true,'myles':true,'august':true,'karter':true,'timothy':true,'jasper':true,'felix':true,'jesse':true,'rylan':true,'tanner':true,'lukas':true,'simon':true,'mark':true,'maximus':true,'richard':true,'judah':true,'edward':true,'amir':true,'carlos':true,'victor':true,'cash':true,'peter':true,'river':true,'zander':true,'zion':true,'emmanuel':true,'griffin':true,'leon':true,'joey':true,'jeremy':true,'reid':true,'zayden':true,'corbin':true,'rafael':true,'brooks':true,'alejandro':true,'archer':true,'seth':true,'caiden':true,'milo':true,'drew':true,'gage':true,'paxton':true,'dante':true,'garrett':true,'spencer':true,'brian':true,'ahmad':true,'damien':true,'derek':true,'mohammed':true,'emma':true,'olivia':true,'sophia':true,'ava':true,'mia':true,'isabella':true,'charlotte':true,'amelia':true,'harper':true,'madison':true,'emily':true,'abigail':true,'lily':true,'ella':true,'sofia':true,'chloe':true,'evelyn':true,'aria':true,'aubrey':true,'scarlett':true,'ellie':true,'zoey':true,'hannah':true,'zoe':true,'grace':true,'addison':true,'elizabeth':true,'audrey':true,'mila':true,'nora':true,'layla':true,'victoria':true,'natalie':true,'lillian':true,'lucy':true,'penelope':true,'brooklyn':true,'claire':true,'savannah':true,'violet':true,'anna':true,'stella':true,'leah':true,'maya':true,'alice':true,'skylar':true,'samantha':true,'maria':true,'eva':true,'sarah':true,'sophie':true,'hailey':true,'kennedy':true,'julia':true,'sadie':true,'hazel':true,'madelyn':true,'paisley':true,'mackenzie':true,'eleanor':true,'aaliyah':true,'gabriella':true,'caroline':true,'kylie':true,'peyton':true,'piper':true,'ariana':true,'bella':true,'kaylee':true,'arianna':true,'cora':true,'clara':true,'taylor':true,'isabelle':true,'camila':true,'autumn':true,'quinn':true,'alyssa':true,'annabelle':true,'lydia':true,'emilia':true,'isla':true,'alexa':true,'allison':true,'aurora':true,'naomi':true,'ruby':true,'valentina':true,'elena':true,'alexis':true,'gianna':true,'madeline':true,'luna':true,'aubree':true,'lilly':true,'eliana':true,'hadley':true,'sydney':true,'reagan':true,'vivian':true,'serenity':true,'bailey':true,'rylee':true,'kayla':true,'faith':true,'alexandra':true,'willow':true,'isabel':true,'lyla':true,'liliana':true,'brielle':true,'morgan':true,'ivy':true,'kinsley':true,'nevaeh':true,'molly':true,'jade':true,'sara':true,'london':true,'adalyn':true,'lauren':true,'natalia':true,'kate':true,'paige':true,'brooke':true,'emery':true,'delilah':true,'ana':true,'adeline':true,'khloe':true,'melody':true,'jasmine':true,'arya':true,'gracie':true,'everly':true,'jordyn':true,'eden':true,'adalynn':true,'charlie':true,'norah':true,'athena':true,'melanie':true,'maggie':true,'elise':true,'mya':true,'reese':true,'laila':true,'jocelyn':true,'abby':true,'eliza':true,'katherine':true,'josephine':true,'kendall':true,'sienna':true,'rose':true,'mary':true,'payton':true,'brianna':true,'lola':true,'makayla':true,'andrea':true,'mckenzie':true,'callie':true,'ariel':true,'alaina':true,'lila':true,'juliana':true,'gabrielle':true,'hayden':true,'emerson':true,'tessa':true,'adelyn':true,'arabella':true,'nicole':true,'evie':true,'alana':true,'cecilia':true,'genevieve':true,'trinity':true,'alina':true,'nur':true,'nina':true,'laura':true,'lucia':true,'genesis':true,'leilani':true,'presley':true,'kaitlyn':true,'teagan':true,'leila':true,'finley':true,'juliette':true,'alexandria':true,'summer':true,'aliyah':true,'josie':true,'keira':true,'ryleigh':true,'fiona':true,'julianna':true,'alayna':true,'mariah':true,'marley':true,'anastasia':true,'brooklynn':true,'helena':true,'iris':true,'adriana':true,'makenzie':true,'lexi':true,'amaya':true,'valerie':true,'londyn':true,'eloise':true,'talia':true,'rebecca':true,'georgia':true,'vivienne':true,'olive':true,'rachel':true,'delaney':true,'kinley':true,'mikayla':true,'katelyn':true,'nova':true,'allie':true,'daisy':true,'evangeline':true,'harmony':true,'zara':true,'lana':true,'ayla':true,'camille':true,'lara':true,'sawyer'
915:true,'lena':true,'mckenna':true,'katie':true,'kenzie':true,'raelynn':true,'alivia':true,'gabriela':true,'maryam':true,'anaya':true,'brynn':true,'noelle':true,'phoebe':true,'angelina':true,'gia':true,'erin':true};jQuery.wordStats.whiteList={'U.S.A.':true,'U.S.':true};;jQuery.extend({highlight:function(node,re,nodeName,className){if(node.nodeType===3){var match=node.data.match(re);if(match){var highlight=document.createElement(nodeName||'span');highlight.className=className||'highlight';var wordNode=node.splitText(match.index);wordNode.splitText(match[0].length);var wordClone=wordNode.cloneNode(true);highlight.appendChild(wordClone);wordNode.parentNode.replaceChild(highlight,wordNode);return 1;}}else if((node.nodeType===1&&node.childNodes)&&!/(script|style)/i.test(node.tagName)&&!(node.tagName===nodeName.toUpperCase()&&node.className===className)){for(var i=0;i<node.childNodes.length;i++){i+=jQuery.highlight(node.childNodes[i],re,nodeName,className);}}
916return 0;}});jQuery.fn.unhighlight=function(options){var settings={className:'highlight',element:'span'};jQuery.extend(settings,options);return this.find(settings.element+"."+settings.className).each(function(){var parent=this.parentNode;parent.replaceChild(this.firstChild,this);parent.normalize();}).end();};jQuery.fn.highlight=function(words,options){var settings={className:'highlight',element:'span',caseSensitive:false,wordsOnly:false,includePlurals:false};jQuery.extend(settings,options);if(words.constructor===String){if(settings.includePlurals){words=[words,words+'s'];}else{words=[words];}}
917words=jQuery.grep(words,function(word,i){return word!='';});words=jQuery.map(words,function(word,i){return word.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");});if(words.length==0){return this;};var flag=settings.caseSensitive?"":"i";var pattern="("+words.join("|")+")";if(settings.wordsOnly){pattern="\\b"+pattern+"\\b";}
918var re=new RegExp(pattern,flag);return this.each(function(){jQuery.highlight(this,re,settings.element,settings.className);});};;(function($){var textarea,staticOffset;var iLastMousePos=0;var iMin=32;var grip;$.fn.TextAreaResizer=function(options){return this.each(function(){textarea=$(this).addClass('processed'),staticOffset=null;$(this).wrap('<div class="resizable-textarea"><span></span></div>').parent().append($('<div class="grippie"></div>').bind("mousedown",{el:this},startDrag));var grippie=$('div.grippie',$(this).parent())[0];grippie.style.marginRight=(grippie.offsetWidth-$(this)[0].offsetWidth)+'px'})
919function startDrag(e){textarea=$(e.data.el);textarea.blur();iLastMousePos=mousePosition(e).y;staticOffset=textarea.height()-iLastMousePos;textarea.css('opacity',0.25);$(document).mousemove(performDrag).mouseup(endDrag);return false}
920function performDrag(e){var iThisMousePos=mousePosition(e).y;var iMousePos=staticOffset+iThisMousePos;if(iLastMousePos>=(iThisMousePos)){iMousePos-=5}
921iLastMousePos=iThisMousePos;iMousePos=Math.max(iMin,iMousePos);textarea.height(iMousePos+'px');if(iMousePos<iMin){endDrag(e)}
922return false}
923function endDrag(e){$(document).unbind('mousemove',performDrag).unbind('mouseup',endDrag);textarea.css('opacity',1);textarea.focus();options.onResize(e,textarea.height());textarea=null;staticOffset=null;iLastMousePos=0}
924function mousePosition(e){return{x:e.clientX+document.documentElement.scrollLeft,y:e.clientY+document.documentElement.scrollTop}}};})(jQuery);;
925/*!
926 * jQuery.selection - jQuery Plugin
927 *
928 * Copyright (c) 2010-2014 IWASAKI Koji (@madapaja).
929 * http://blog.madapaja.net/
930 * Under The MIT License
931 *
932 * Permission is hereby granted, free of charge, to any person obtaining
933 * a copy of this software and associated documentation files (the
934 * "Software"), to deal in the Software without restriction, including
935 * without limitation the rights to use, copy, modify, merge, publish,
936 * distribute, sublicense, and/or sell copies of the Software, and to
937 * permit persons to whom the Software is furnished to do so, subject to
938 * the following conditions:
939 *
940 * The above copyright notice and this permission notice shall be
941 * included in all copies or substantial portions of the Software.
942 *
943 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
944 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
945 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
946 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
947 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
948 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
949 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
950 */
951(function($,win,doc){var _getCaretInfo=function(element){var res={text:'',start:0,end:0};if(!element.value){return res;}
952try{if(win.getSelection){res.start=element.selectionStart;res.end=element.selectionEnd;res.text=element.value.slice(res.start,res.end);}else if(doc.selection){element.focus();var range=doc.selection.createRange(),range2=doc.body.createTextRange();res.text=range.text;try{range2.moveToElementText(element);range2.setEndPoint('StartToStart',range);}catch(e){range2=element.createTextRange();range2.setEndPoint('StartToStart',range);}
953res.start=element.value.length-range2.text.length;res.end=res.start+range.text.length;}}catch(e){}
954return res;};var _CaretOperation={getPos:function(element){var tmp=_getCaretInfo(element);return{start:tmp.start,end:tmp.end};},setPos:function(element,toRange,caret){caret=this._caretMode(caret);if(caret==='start'){toRange.end=toRange.start;}else if(caret==='end'){toRange.start=toRange.end;}
955element.focus();try{if(element.createTextRange){var range=element.createTextRange();if(win.navigator.userAgent.toLowerCase().indexOf("msie")>=0){toRange.start=element.value.substr(0,toRange.start).replace(/\r/g,'').length;toRange.end=element.value.substr(0,toRange.end).replace(/\r/g,'').length;}
956range.collapse(true);range.moveStart('character',toRange.start);range.moveEnd('character',toRange.end-toRange.start);range.select();}else if(element.setSelectionRange){element.setSelectionRange(toRange.start,toRange.end);}}catch(e){}},getText:function(element){return _getCaretInfo(element).text;},_caretMode:function(caret){caret=caret||"keep";if(caret===false){caret='end';}
957switch(caret){case'keep':case'start':case'end':break;default:caret='keep';}
958return caret;},replace:function(element,text,caret){var tmp=_getCaretInfo(element),orig=element.value,pos=$(element).scrollTop(),range={start:tmp.start,end:tmp.start+text.length};element.value=orig.substr(0,tmp.start)+text+orig.substr(tmp.end);$(element).scrollTop(pos);this.setPos(element,range,caret);},insertBefore:function(element,text,caret){var tmp=_getCaretInfo(element),orig=element.value,pos=$(element).scrollTop(),range={start:tmp.start+text.length,end:tmp.end+text.length};element.value=orig.substr(0,tmp.start)+text+orig.substr(tmp.start);$(element).scrollTop(pos);this.setPos(element,range,caret);},insertAfter:function(element,text,caret){var tmp=_getCaretInfo(element),orig=element.value,pos=$(element).scrollTop(),range={start:tmp.start,end:tmp.end};element.value=orig.substr(0,tmp.end)+text+orig.substr(tmp.end);$(element).scrollTop(pos);this.setPos(element,range,caret);}};$.extend({selection:function(mode){var getText=((mode||'text').toLowerCase()==='text');try{if(win.getSelection){if(getText){return win.getSelection().toString();}
958else{var sel=win.getSelection(),range;if(sel.getRangeAt){range=sel.getRangeAt(0);}else{range=doc.createRange();range.setStart(sel.anchorNode,sel.anchorOffset);range.setEnd(sel.focusNode,sel.focusOffset);}
959return $('<div></div>').append(range.cloneContents()).html();}}else if(doc.selection){if(getText){return doc.selection.createRange().text;}else{return doc.selection.createRange().htmlText;}}}catch(e){}
960return'';}});$.fn.extend({selection:function(mode,opts){opts=opts||{};switch(mode){case'getPos':return _CaretOperation.getPos(this[0]);case'setPos':return this.each(function(){_CaretOperation.setPos(this,opts);});case'replace':return this.each(function(){_CaretOperation.replace(this,opts.text,opts.caret);});case'insert':return this.each(function(){if(opts.mode==='before'){_CaretOperation.insertBefore(this,opts.text,opts.caret);}else{_CaretOperation.insertAfter(this,opts.text,opts.caret);}});case'get':default:return _CaretOperation.getText(this[0]);}
961return this;}});})(jQuery,window,window.document);;var EXPORTED_SYMBOLS=['AtDCore'];function AtDCore(){this.ignore_types=['Bias Language','Cliches','Complex Expression','Diacritical Marks','Double Negatives','Hidden Verbs','Jargon Language','Passive voice','Phrases to Avoid','Redundant Expression'];this.ignore_strings={};this.i18n={};};AtDCore.prototype.getLang=function(key,defaultk){if(this.i18n[key]==undefined)
962return defaultk;return this.i18n[key];};AtDCore.prototype.addI18n=function(localizations){this.i18n=localizations;};AtDCore.prototype.setIgnoreStrings=function(string){var parent=this;this.map(string.split(/,\s*/g),function(string){parent.ignore_strings[string]=1;});};AtDCore.prototype.showTypes=function(string){var show_types=string.split(/,\s*/g);var types={};types["Double Negatives"]=1;types["Hidden Verbs"]=1;types["Passive voice"]=1;types["Bias Language"]=1;types["Cliches"]=1;types["Complex Expression"]=1;types["Diacritical Marks"]=1;types["Jargon Language"]=1;types["Phrases to Avoid"]=1;types["Redundant Expression"]=1;var ignore_types=[];this.map(show_types,function(string){types[string]=undefined;});this.map(this.ignore_types,function(string){if(types[string]!=undefined)
963ignore_types.push(string);});this.ignore_types=ignore_types;};AtDCore.prototype.makeError=function(error_s,tokens,type,seps,pre){var struct=new Object();struct.type=type;struct.string=error_s;struct.tokens=tokens;if(new RegExp("\\b"+error_s+"\\b").test(error_s)){struct.regexp=new RegExp("(?!"+error_s+"<)\\b"+error_s.replace(/\s+/g,seps)+"\\b");}
964else if(new RegExp(error_s+"\\b").test(error_s)){struct.regexp=new RegExp("(?!"+error_s+"<)"+error_s.replace(/\s+/g,seps)+"\\b");}
965else if(new RegExp("\\b"+error_s).test(error_s)){struct.regexp=new RegExp("(?!"+error_s+"<)\\b"+error_s.replace(/\s+/g,seps));}
966else{struct.regexp=new RegExp("(?!"+error_s+"<)"+error_s.replace(/\s+/g,seps));}
967struct.used=false;return struct;};AtDCore.prototype.addToErrorStructure=function(errors,list,type,seps){var parent=this;this.map(list,function(error){var tokens=error["word"].split(/\s+/);var pre=error["pre"];var first=tokens[0];if(errors['__'+first]==undefined){errors['__'+first]=new Object();errors['__'+first].pretoks={};errors['__'+first].defaults=new Array();}
968if(pre==""){errors['__'+first].defaults.push(parent.makeError(error["word"],tokens,type,seps,pre));}else{if(errors['__'+first].pretoks['__'+pre]==undefined)
969errors['__'+first].pretoks['__'+pre]=new Array();errors['__'+first].pretoks['__'+pre].push(parent.makeError(error["word"],tokens,type,seps,pre));}});};AtDCore.prototype.buildErrorStructure=function(spellingList,enrichmentList,grammarList){var seps=this._getSeparators();var errors={};this.addToErrorStructure(errors,spellingList,"hiddenSpellError",seps);this.addToErrorStructure(errors,grammarList,"hiddenGrammarError",seps);this.addToErrorStructure(errors,enrichmentList,"hiddenSuggestion",seps);return errors;};AtDCore.prototype._getSeparators=function(){var re='',i;var str='"s!#$%&()*+,./:;<=>?@[\]^_{|}';for(i=0;i<str.length;i++)
970re+='\\'+str.charAt(i);return"(?:(?:[\xa0"+re+"])|(?:\\-\\-))+";};AtDCore.prototype.processXML=function(responseXML){var types={};this.map(this.ignore_types,function(type){types[type]=1;});this.suggestions=[];var errors=responseXML.getElementsByTagName('error');var grammarErrors=[];var spellingErrors=[];var enrichment=[];for(var i=0;i<errors.length;i++){if(errors[i].getElementsByTagName('string').item(0).firstChild!=null){var errorString=errors[i].getElementsByTagName('string').item(0).firstChild.data;var errorType=errors[i].getElementsByTagName('type').item(0).firstChild.data;var errorDescription=errors[i].getElementsByTagName('description').item(0).firstChild.data;var errorContext;
970if(errors[i].getElementsByTagName('precontext').item(0).firstChild!=null)
971errorContext=errors[i].getElementsByTagName('precontext').item(0).firstChild.data;else
972errorContext="";if(this.ignore_strings[errorString]==undefined){var suggestion={};suggestion["description"]=errorDescription;suggestion["suggestions"]=[];suggestion["matcher"]=new RegExp('^'+errorString.replace(/\s+/,this._getSeparators())+'$');suggestion["context"]=errorContext;suggestion["string"]=errorString;suggestion["type"]=errorType;this.suggestions.push(suggestion);if(errors[i].getElementsByTagName('suggestions').item(0)!=undefined){var suggestions=errors[i].getElementsByTagName('suggestions').item(0).getElementsByTagName('option');for(var j=0;j<suggestions.length;j++)
973suggestion["suggestions"].push(suggestions[j].firstChild.data);}
974if(errors[i].getElementsByTagName('url').item(0)!=undefined){var errorUrl=errors[i].getElementsByTagName('url').item(0).firstChild.data;suggestion["moreinfo"]=errorUrl+'&theme=tinymce';}
975if(types[errorDescription]==undefined){if(errorType=="suggestion")
976enrichment.push({word:errorString,pre:errorContext});if(errorType=="grammar")
977grammarErrors.push({word:errorString,pre:errorContext});}
978if(errorType=="spelling"||errorDescription=="Homophone")
979spellingErrors.push({word:errorString,pre:errorContext});if(errorDescription=='Cliches')
980suggestion["description"]='Clich&eacute;s';if(errorDescription=="Spelling")
981suggestion["description"]=this.getLang('menu_title_spelling','Spelling');if(errorDescription=="Repeated Word")
982suggestion["description"]=this.getLang('menu_title_repeated_word','Repeated Word');if(errorDescription=="Did you mean...")
983suggestion["description"]=this.getLang('menu_title_confused_word','Did you mean...');}}}
984var errorStruct;var ecount=spellingErrors.length+grammarErrors.length+enrichment.length;if(ecount>0)
985errorStruct=this.buildErrorStructure(spellingErrors,enrichment,grammarErrors);else
986errorStruct=undefined;return{errors:errorStruct,count:ecount,suggestions:this.suggestions};};AtDCore.prototype.findSuggestion=function(element){var text=element.innerHTML;var context=(this.getAttrib(element,'pre')+"").replace(/[\\,!\\?\\."\s]/g,'');if(this.getAttrib(element,'pre')==undefined)
987{alert(element.innerHTML);}
988var errorDescription=undefined;var len=this.suggestions.length;for(var i=0;i<len;i++){var key=this.suggestions[i]["string"];if((context==""||context==this.suggestions[i]["context"])&&this.suggestions[i]["matcher"].test(text)){errorDescription=this.suggestions[i];break;}}
989return errorDescription;};function TokenIterator(tokens){this.tokens=tokens;this.index=0;this.count=0;this.last=0;};TokenIterator.prototype.next=function(){var current=this.tokens[this.index];this.count=this.last;this.last+=current.length+1;this.index++;if(current!=""){if(current[0]=="'")
990current=current.substring(1,current.length);if(current[current.length-1]=="'")
991current=current.substring(0,current.length-1);}
992return current;};TokenIterator.prototype.hasNext=function(){return this.index<this.tokens.length;};TokenIterator.prototype.hasNextN=function(n){return(this.index+n)<this.tokens.length;};TokenIterator.prototype.skip=function(m,n){this.index+=m;this.last+=n;if(this.index<this.tokens.length)
993this.count=this.last-this.tokens[this.index].length;};TokenIterator.prototype.getCount=function(){return this.count;};TokenIterator.prototype.peek=function(n){var peepers=new Array();var end=this.index+n;for(var x=this.index;x<end;x++)
994peepers.push(this.tokens[x]);return peepers;};AtDCore.prototype.markMyWords=function(container_nodes,errors){var seps=new RegExp(this._getSeparators());var nl=new Array();var ecount=0;var parent=this;this._walk(container_nodes,function(n){if(n.nodeType==3&&!parent.isMarkedNode(n))
995nl.push(n);});var iterator;this.map(nl,function(n){var v;if(n.nodeType==3){v=n.nodeValue;var tokens=n.nodeValue.split(seps);var previous="";var doReplaces=[];iterator=new TokenIterator(tokens);while(iterator.hasNext()){var token=iterator.next();var current=errors['__'+token];var defaults;if(current!=undefined&&current.pretoks!=undefined){defaults=current.defaults;current=current.pretoks['__'+previous];var done=false;var prev,curr;prev=v.substr(0,iterator.getCount());curr=v.substr(prev.length,v.length);var checkErrors=function(error){if(error!=undefined&&!error.used&&foundStrings['__'+error.string]==undefined&&error.regexp.test(curr)){var oldlen=curr.length;foundStrings['__'+error.string]=1;doReplaces.push([error.regexp,'<span class="'+error.type+'" pre="'+previous+'">$&</span>']);error.used=true;done=true;}};var foundStrings={};if(current!=undefined){previous=previous+' ';parent.map(current,checkErrors);}
996if(!done){previous='';parent.map(defaults,checkErrors);}}
997previous=token;}
998if(doReplaces.length>0){newNode=n;for(var x=0;x<doReplaces.length;x++){var regexp=doReplaces[x][0],result=doReplaces[x][1];var bringTheHurt=function(node){if(node.nodeType==3){ecount++;
998if(parent.isIE()&&node.nodeValue.length>0&&node.nodeValue.substr(0,1)==' ')
999return parent.create('<span class="mceItemHidden">&nbsp;</span>'+node.nodeValue.substr(1,node.nodeValue.length-1).replace(regexp,result),false);else
1000return parent.create(node.nodeValue.replace(regexp,result),false);}
1001else{var contents=parent.contents(node);for(var y=0;y<contents.length;y++){if(contents[y].nodeType==3&&regexp.test(contents[y].nodeValue)){var nnode;if(parent.isIE()&&contents[y].nodeValue.length>0&&contents[y].nodeValue.substr(0,1)==' ')
1002nnode=parent.create('<span class="mceItemHidden">&nbsp;</span>'+contents[y].nodeValue.substr(1,contents[y].nodeValue.length-1).replace(regexp,result),true);else
1003nnode=parent.create(contents[y].nodeValue.replace(regexp,result),true);parent.replaceWith(contents[y],nnode);parent.removeParent(nnode);ecount++;return node;}}
1004return node;}};newNode=bringTheHurt(newNode);}
1005parent.replaceWith(n,newNode);}}});return ecount;};AtDCore.prototype._walk=function(elements,f){var i;for(i=0;i<elements.length;i++){f.call(f,elements[i]);this._walk(this.contents(elements[i]),f);}};AtDCore.prototype.removeWords=function(node,w){var count=0;var parent=this;this.map(this.findSpans(node).reverse(),function(n){if(n&&(parent.isMarkedNode(n)||parent.hasClass(n,'mceItemHidden')||parent.isEmptySpan(n))){if(n.innerHTML=='&nbsp;'){var nnode=document.createTextNode(' ');parent.replaceWith(n,nnode);}
1006else if(!w||n.innerHTML==w){parent.removeParent(n);count++;}}});return count;};AtDCore.prototype.isEmptySpan=function(node){return(this.getAttrib(node,'class')==""&&this.getAttrib(node,'style')==""&&this.getAttrib(node,'id')==""&&!this.hasClass(node,'Apple-style-span')&&this.getAttrib(node,'mce_name')=="");};AtDCore.prototype.isMarkedNode=function(node){return(this.hasClass(node,'hiddenGrammarError')||this.hasClass(node,'hiddenSpellError')||this.hasClass(node,'hiddenSuggestion'));};AtDCore.prototype.applySuggestion=function(element,suggestion){if(suggestion=='(omit)'){this.remove(element);}
1007else{var node=this.create(suggestion);this.replaceWith(element,node);this.removeParent(node);}};AtDCore.prototype.hasErrorMessage=function(xmlr){return(xmlr!=undefined&&xmlr.getElementsByTagName('message').item(0)!=null);};AtDCore.prototype.getErrorMessage=function(xmlr){return xmlr.getElementsByTagName('message').item(0);};AtDCore.prototype.isIE=function(){return navigator.appName=='Microsoft Internet Explorer';};var AtD={rpc:'',rpc_css:'http://www.polishmywriting.com/atd-jquery/server/proxycss.php?data=',rpc_css_lang:'en',api_key:'',i18n:{},listener:{}};AtD.getLang=function(key,defaultk){if(AtD.i18n[key]==undefined)
1008return defaultk;return AtD.i18n[key];};AtD.addI18n=function(localizations){AtD.i18n=localizations;AtD.core.addI18n(localizations);};AtD.setIgnoreStrings=function(string){AtD.core.setIgnoreStrings(string);};AtD.showTypes=function(string){AtD.core.showTypes(string);};AtD.checkCrossAJAX=function(container_id,callback_f){if(typeof AtD_proofread_click_count!="undefined")
1009AtD_proofread_click_count++;AtD.callback_f=callback_f;AtD.remove(container_id);var container=jQuery('#'+container_id);var html=container.html();text=jQuery.trim(container.html());text=encodeURIComponent(text.replace(/\%/g,'%25'));if((text.length>2000&&navigator.appName=='Microsoft Internet Explorer')||text.length>7800){if(callback_f!=undefined&&callback_f.error!=undefined)
1010callback_f.error("Maximum text length for this browser exceeded");return;}
1011CSSHttpRequest.get(AtD.rpc_css+text+"&lang="+AtD.rpc_css_lang+"&nocache="+(new Date().getTime()),function(response){var xml;if(navigator.appName=='Microsoft Internet Explorer'){xml=new ActiveXObject("Microsoft.XMLDOM");xml.async=false;xml.loadXML(response);}
1012else{xml=(new DOMParser()).parseFromString(response,'text/xml');}
1013if(AtD.core.hasErrorMessage(xml)){if(AtD.callback_f!=undefined&&AtD.callback_f.error!=undefined)
1014AtD.callback_f.error(AtD.core.getErrorMessage(xml));return;}
1015AtD.container=container_id;var count=AtD.processXML(container_id,xml);if(AtD.callback_f!=undefined&&AtD.callback_f.ready!=undefined)
1016AtD.callback_f.ready(count);if(count==0&&AtD.callback_f!=undefined&&AtD.callback_f.success!=undefined)
1017AtD.callback_f.success(count);AtD.counter=count;AtD.count=count;});};AtD.check=function(container_id,callback_f){if(typeof AtD_proofread_click_count!="undefined")
1018AtD_proofread_click_count++;AtD.callback_f=callback_f;AtD.remove(container_id);var container=jQuery('#'+container_id);var html=container.html();text=jQuery.trim(container.html());text=encodeURIComponent(text);var ie=(function(){var undef,v=3,div=document.createElement('div'),all=div.getElementsByTagName('i');while(div.innerHTML='<!--[if gt IE '+(++v)+']><i></i><![endif]-->',all[0]);return v>4?v:undef;}());jQuery.ajax({type:"POST",url:AtD.rpc+'/checkDocument',data:'key='+AtD.api_key+'&data='+text,format:'raw',dataType:(ie)?"text":"xml",error:function(XHR,status,error){if(AtD.callback_f!=undefined&&AtD.callback_f.error!=undefined)
1019AtD.callback_f.error(status+": "+error);},success:function(data){var xml;
1019if(typeof data=="string"){xml=new ActiveXObject("Microsoft.XMLDOM");xml.async=false;xml.loadXML(data);}
1020else{xml=data;}
1021if(AtD.core.hasErrorMessage(xml)){if(AtD.callback_f!=undefined&&AtD.callback_f.error!=undefined)
1022AtD.callback_f.error(AtD.core.getErrorMessage(xml));return;}
1023AtD.container=container_id;var count=AtD.processXML(container_id,xml);if(AtD.callback_f!=undefined&&AtD.callback_f.ready!=undefined)
1024AtD.callback_f.ready(count);if(count==0&&AtD.callback_f!=undefined&&AtD.callback_f.success!=undefined)
1025AtD.callback_f.success(count);AtD.counter=count;AtD.count=count;}});};AtD.remove=function(container_id){AtD._removeWords(container_id,null);};AtD.clickListener=function(event){if(AtD.core.isMarkedNode(event.target))
1026AtD.suggest(event.target);};AtD.processXML=function(container_id,responseXML){var results=AtD.core.processXML(responseXML);if(results.count>0)
1027results.count=AtD.core.markMyWords(jQuery('#'+container_id).contents(),results.errors);jQuery('#'+container_id).unbind('click',AtD.clickListener);jQuery('#'+container_id).click(AtD.clickListener);return results.count;};AtD.useSuggestion=function(word){this.core.applySuggestion(AtD.errorElement,word);AtD.counter--;if(AtD.counter==0&&AtD.callback_f!=undefined&&AtD.callback_f.success!=undefined)
1028AtD.callback_f.success(AtD.count);};AtD.editSelection=function(){var parent=AtD.errorElement.parent();if(AtD.callback_f!=undefined&&AtD.callback_f.editSelection!=undefined)
1029AtD.callback_f.editSelection(AtD.errorElement);if(AtD.errorElement.parent()!=parent){AtD.counter--;if(AtD.counter==0&&AtD.callback_f!=undefined&&AtD.callback_f.success!=undefined)
1030AtD.callback_f.success(AtD.count);}};AtD.ignoreSuggestion=function(){AtD.core.removeParent(AtD.errorElement);AtD.counter--;if(AtD.counter==0&&AtD.callback_f!=undefined&&AtD.callback_f.success!=undefined)
1031AtD.callback_f.success(AtD.count);};AtD.ignoreAll=function(container_id){var target=AtD.errorElement.text();var removed=AtD._removeWords(container_id,target);AtD.counter-=removed;if(AtD.counter==0&&AtD.callback_f!=undefined&&AtD.callback_f.success!=undefined)
1032AtD.callback_f.success(AtD.count);if(AtD.callback_f!=undefined&&AtD.callback_f.ignore!=undefined){AtD.callback_f.ignore(target);AtD.core.setIgnoreStrings(target);}};AtD.explainError=function(){if(AtD.callback_f!=undefined&&AtD.callback_f.explain!=undefined)
1033AtD.callback_f.explain(AtD.explainURL);};AtD.suggest=function(element){if(jQuery('#suggestmenu').length==0){var suggest=jQuery('<div id="suggestmenu"></div>');suggest.prependTo('body');}
1034else{var suggest=jQuery('#suggestmenu');suggest.hide();}
1035errorDescription=AtD.core.findSuggestion(element);AtD.errorElement=jQuery(element);suggest.empty();if(errorDescription==undefined){suggest.append('<strong>'+AtD.getLang('menu_title_no_suggestions','No suggestions')+'</strong>');}
1036else if(errorDescription["suggestions"].length==0){suggest.append('<strong>'+errorDescription['description']+'</strong>');}
1037else{suggest.append('<strong>'+errorDescription['description']+'</strong>');for(var i=0;i<errorDescription["suggestions"].length;i++){(function(sugg){suggest.append('<a href="javascript:AtD.useSuggestion(\''+sugg.replace(/'/,'\\\'')+'\')">'+sugg+'</a>');})(errorDescription["suggestions"][i]);}}
1038if(AtD.callback_f!=undefined&&AtD.callback_f.explain!=undefined&&errorDescription['moreinfo']!=undefined){suggest.append('<a href="javascript:AtD.explainError()" class="spell_sep_top">'+AtD.getLang('menu_option_explain','Explain...')+'</a>');AtD.explainURL=errorDescription['moreinfo'];}
1039suggest.append('<a href="javascript:AtD.ignoreSuggestion()" class="spell_sep_top">'+AtD.getLang('menu_option_ignore_once','Ignore suggestion')+'</a>');if(AtD.callback_f!=undefined&&AtD.callback_f.editSelection!=undefined){if(AtD.callback_f!=undefined&&AtD.callback_f.ignore!=undefined)
1040suggest.append('<a href="javascript:AtD.ignoreAll(\''+AtD.container+'\')">'+AtD.getLang('menu_option_ignore_always','Ignore always')+'</a>');else
1041suggest.append('<a href="javascript:AtD.ignoreAll(\''+AtD.container+'\')">'+AtD.getLang('menu_option_ignore_all','Ignore all')+'</a>');suggest.append('<a href="javascript:AtD.editSelection(\''+AtD.container+'\')" class="spell_sep_bottom spell_sep_top">'+AtD.getLang('menu_option_edit_selection','Edit Selection...')+'</a>');}
1042else{if(AtD.callback_f!=undefined&&AtD.callback_f.ignore!=undefined)
1043suggest.append('<a href="javascript:AtD.ignoreAll(\''+AtD.container+'\')" class="spell_sep_bottom">'+AtD.getLang('menu_option_ignore_always','Ignore always')+'</a>');else
1044suggest.append('<a href="javascript:AtD.ignoreAll(\''+AtD.container+'\')" class="spell_sep_bottom">'+AtD.getLang('menu_option_ignore_all','Ignore all')+'</a>');}
1045var pos=jQuery(element).offset();var width=jQuery(element).width();jQuery(suggest).css({left:(pos.left+width)+'px',top:pos.top+'px'});jQuery(suggest).fadeIn(200);AtD.suggestShow=true;setTimeout(function(){jQuery("body").bind("click",function(){if(!AtD.suggestShow)
1046jQuery('#suggestmenu').fadeOut(200);});},1);setTimeout(function(){AtD.suggestShow=false;},2);};AtD._removeWords=function(container_id,w){return this.core.removeWords(jQuery('#'+container_id),w);};AtD.initCoreModule=function(){var core=new AtDCore();core.hasClass=function(node,className){return jQuery(node).hasClass(className);};core.map=jQuery.map;core.contents=function(node){return jQuery(node).contents();};
1046core.replaceWith=function(old_node,new_node){return jQuery(old_node).replaceWith(new_node);};core.findSpans=function(parent){return jQuery.makeArray(parent.find('span'));};core.create=function(node_html,isTextNode){return jQuery('<span class="mceItemHidden">'+node_html+'</span>');};core.remove=function(node){return jQuery(node).remove();};core.removeParent=function(node){if(jQuery(node).unwrap)
1047return jQuery(node).contents().unwrap();else
1048return jQuery(node).replaceWith(jQuery(node).html());};core.getAttrib=function(node,name){return jQuery(node).attr(name);};return core;};AtD.core=AtD.initCoreModule();;(function(){var chr=window.CSSHttpRequest={};chr.id=0;chr.requests={};chr.MATCH_ORDINAL=/#c(\d+)/;chr.MATCH_URL=/url\("?data\:[^,]*,([^")]+)"?\)/;chr.get=function(url,callback){var id=++chr.id;var iframe=document.createElement("iframe");iframe.style.position="absolute";iframe.style.left=iframe.style.top="-1000px";iframe.style.width=iframe.style.height=0;document.documentElement.appendChild(iframe);var r=chr.requests[id]={id:id,iframe:iframe,document:iframe.contentDocument||iframe.contentWindow.document,callback:callback};r.document.open("text/html",false);r.document.write("<html><head>");r.document.write("<link rel='stylesheet' type='text/css' media='print, csshttprequest' href='"+chr.escapeHTML(url)+"' />");r.document.write("</head><body>");r.document.write("<script type='text/javascript'>");r.document.write("(function(){var w = window; var p = w.parent; p.CSSHttpRequest.sandbox(w); w.onload = function(){p.CSSHttpRequest.callback('"+id+"');};})();");r.document.write("</script>");r.document.write("</body></html>");r.document.close();};chr.sandbox=function(w){};chr.callback=function(id){var r=chr.requests[id];var data=chr.parse(r);r.callback(data);window.setTimeout(function(){var r=chr.requests[id];try{r.iframe.parentElement.removeChild(r.iframe);}catch(e){};delete chr.requests[id];},0);};chr.parse=function(r){var data=[];try{var rules=r.document.styleSheets[0].cssRules||r.document.styleSheets[0].rules;for(var i=0;i<rules.length;i++){try{var r=rules.item?rules.item(i):rules[i];var ord=r.selectorText.match(chr.MATCH_ORDINAL)[1];var val=r.style.backgroundImage.match(chr.MATCH_URL)[1];data[ord]=val;}catch(e){}}}
1049catch(e){r.document.getElementsByTagName("link")[0].setAttribute("media","screen");var x=r.document.createElement("div");x.innerHTML="foo";r.document.body.appendChild(x);var ord=0;try{while(1){x.id="c"+ord;var style=r.document.defaultView.getComputedStyle(x,null);var bg=style["background-image"]||style.backgroundImage||style.getPropertyValue("background-image");var val=bg.match(chr.MATCH_URL)[1];data[ord]=val;ord++;}}catch(e){}}
1050return decodeURIComponent(data.join(""));};chr.escapeHTML=function(s){return s.replace(/([<>&""''])/g,function(m,c){switch(c){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";case'"':return"&quot;";case"'":return"&apos;";}
1051return c;});};})();;;(function($,window,undefined){'use strict';var $event=$.event,$special,resizeTimeout;$special=$event.special.debouncedresize={setup:function(){$(this).on("resize",$special.handler);},teardown:function(){$(this).off("resize",$special.handler);},handler:function(event,execAsap){var context=this,args=arguments,dispatch=function(){event.type="debouncedresize";$event.dispatch.apply(context,args);};if(resizeTimeout){clearTimeout(resizeTimeout);}
1052execAsap?dispatch():resizeTimeout=setTimeout(dispatch,$special.threshold);},threshold:50};var BLANK='data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==';$.fn.imagesLoaded=function(callback){var $this=this,deferred=$.isFunction($.Deferred)?$.Deferred():0,hasNotify=$.isFunction(deferred.notify),$images=$this.find('img').add($this.filter('img')),loaded=[],proper=[],broken=[];if($.isPlainObject(callback)){$.each(callback,function(key,value){if(key==='callback'){callback=value;}else if(deferred){deferred[key](value);}});}
1053function doneLoading(){var $proper=$(proper),$broken=$(broken);if(deferred){if(broken.length){deferred.reject($images,$proper,$broken);}else{deferred.resolve($images);}}
1054if($.isFunction(callback)){callback.call($this,$images,$proper,$broken);}}
1055function imgLoaded(img,isBroken){if(img.src===BLANK||$.inArray(img,loaded)!==-1){return;}
1056loaded.push(img);if(isBroken){broken.push(img);}else{proper.push(img);}
1057$.data(img,'imagesLoaded',{isBroken:isBroken,src:img.src});if(hasNotify){deferred.notifyWith($(img),[isBroken,$images,$(proper),$(broken)]);}
1058if($images.length===loaded.length){setTimeout(doneLoading);$images.unbind('.imagesLoaded');}}
1059if(!$images.length){doneLoading();}else{$images.bind('load.imagesLoaded error.imagesLoaded',function(event){imgLoaded(event.target,event.type==='error');}).each(function(i,el){var src=el.src;var cached=$.data(el,'imagesLoaded');if(cached&&cached.src===src){imgLoaded(el,cached.isBroken);return;}
1060if(el.complete&&el.naturalWidth!==undefined){imgLoaded(el,el.naturalWidth===0||el.naturalHeight===0);return;}
1061if(el.readyState||el.complete){el.src=BLANK;el.src=src;}});}
1062return deferred?deferred.promise($this):$this;};var $window=$(window),Modernizr=window.Modernizr;$.Slicebox=function(options,element){this.$el=$(element);this._init(options);};$.Slicebox.defaults={orientation:'v',perspective:1200,cuboidsCount:5,cuboidsRandom:false,maxCuboidsCount:5,disperseFactor:0,colorHiddenSides:'#222',sequentialFactor:150,speed:600,easing:'ease',autoplay:false,interval:3000,fallbackFadeSpeed:300,onBeforeChange:function(position){return false;},onAfterChange:function(position){return false;},onReady:function(){return false;}};$.Slicebox.prototype={_init:function(options){this.options=$.extend(true,{},$.Slicebox.defaults,options);this._validate();this.$items=this.$el.children('li');this.itemsCount=this.$items.length;if(this.itemsCount===0){return false;};this.support=Modernizr.csstransitions&&Modernizr.csstransforms3d;this.current=this.options.current?this.options.current:0;this.isAnimating=false;this.isReady=false;var self=this;this.$el.imagesLoaded(function(){var $current=self.$items.eq(self.current).css('display','block').addClass('sb-current');var i=new Image();i.src=$current.find('img').attr('src');self.realWidth=i.width;self._setSize();self._setStyle();self._initEvents();self.options.onReady();self.isReady=true;if(self.options.autoplay){self._startSlideshow();}});},_validate:function(options){if(this.options.cuboidsCount<0){this.options.cuboidsCount=1;}
1063else if(this.options.cuboidsCount>15){this.options.cuboidsCount=15;}
1064else if(this.options.cuboidsCount%2===0){++this.options.cuboidsCount;}
1065if(this.options.maxCuboidsCount<0){this.options.maxCuboidsCount=1;}
1066else if(this.options.maxCuboidsCount>15){this.options.maxCuboidsCount=15;}
1067else if(this.options.maxCuboidsCount%2===0){++this.options.maxCuboidsCount;}
1068if(this.options.disperseFactor<0){this.options.disperseFactor=0;}
1069if(this.options.orientation!=='v'&&this.options.orientation!=='h'&&this.options.orientation!=='r'){this.options.orientation='v';}},_setSize:function(){var $visible=this.$items.eq(this.current).find('img');this.size={width:$visible.width(),height:$visible.height()};},_setStyle:function(){this.$el.css({'max-width':this.realWidth});},_initEvents:function(){var self=this;$window.on('debouncedresize.slicebox',function(event){self._setSize();});},_startSlideshow:function(){var self=this;this.slideshow=setTimeout(function(){self._navigate('next');if(self.options.autoplay){self._startSlideshow();}},this.options.interval);},_stopSlideshow:function(){if(this.options.autoplay){clearTimeout(this.slideshow);this.isPlaying=false;this.options.autoplay=false;}},_navigate:function(dir,pos){if(this.isAnimating||!this.isReady||this.itemsCount<2){return false;}
1070this.isAnimating=true;this.prev=this.current;if(pos!==undefined){this.current=pos;}
1071else if(dir==='next'){this.current=this.current<this.itemsCount-1?this.current+1:0;}
1072else if(dir==='prev'){this.current=this.current>0?this.current-1:this.itemsCount-1;}
1073this.options.onBeforeChange(this.current);if(!this.support){this._fade(dir);}
1074else{this._layout(dir);this._rotate();}},_fade:function(dir){var self=this,$visible=this.$items.eq(this.prev),h=$visible.find('img').height();this.$el.css('height',h);this.$items.css('position','absolute');this.$items.eq(this.current).fadeIn(this.options.fallbackFadeSpeed,function(){$(this).css('display','block').addClass('sb-current');self.$el.css('height','auto');self.$items.css('position','relative');self.isAnimating=false;});self.$items.eq(self.prev).removeClass('sb-current').fadeOut(this.options.fallbackFadeSpeed);},_layout:function(dir){var orientation=this.options.orientation;if(orientation==='r'){orientation=Math.floor(Math.random()*2)===0?'v':'h';}
1075if(this.options.cuboidsRandom){this.options.cuboidsCount=Math.floor(Math.random()*this.options.maxCuboidsCount+1);}
1076this._validate();var boxStyle={'width':this.size.width,'height':this.size.height,'perspective':this.options.perspective+'px'},config=$.extend(this.options,{size:this.size,items:this.$items,direction:dir,prev:this.prev,current:this.current,o:orientation}),self=this;this.$box=$('<div>').addClass('sb-perspective').css(boxStyle).appendTo(this.$el);this.cuboids=[];this.$el.css('overflow','visible');for(var i=0;i<this.options.cuboidsCount;++i){var cuboid=new $.Cuboid(config,i);this.$box.append(cuboid.getEl());this.cuboids.push(cuboid);}},_rotate:function(){this.$items.eq(this.prev).removeClass('sb-current').hide();for(var i=0;i<this.options.cuboidsCount;++i){var cuboid=this.cuboids[i],self=this;cuboid.rotate(function(pos){if(pos===self.options.cuboidsCount-1){self.$el.css('overflow','hidden');self.isAnimating=false;self.$box.remove();var $current=self.$items.eq(self.current);$current.css('display','block');setTimeout(function(){$current.addClass('sb-current');},0);self.options.onAfterChange(self.current);}});}},_destroy:function(callback){this.$el.off('.slicebox').removeData('slicebox');$window.off('.slicebox');callback.call();},add:function($items,callback){this.$items=this.$items.add($items);this.itemsCount=this.$items.length;if(callback){callback.call($items);}},next:function(){this._stopSlideshow();this._navigate('next');},previous:function(){this._stopSlideshow();this._navigate('prev');},jump:function(pos){pos-=1;if(pos===this.current||pos>=this.itemsCount||pos<0){return false;}
1077this._stopSlideshow();this._navigate(pos>this.current?'next':'prev',pos);},play:function(){if(!this.isPlaying){this.isPlaying=true;this._navigate('next');this.options.autoplay=true;this._startSlideshow();}},pause:function(){if(this.isPlaying){this._stopSlideshow();}},isActive:function(){return this.isAnimating;},destroy:function(callback){this._destroy(callback);}};$.Cuboid=function(config,pos){this.config=config;this.pos=pos;this.side=1;this._setSize();this._configureStyles();};
1077$.Cuboid.prototype={_setSize:function(){this.size={width:this.config.o==='v'?Math.floor(this.config.size.width/this.config.cuboidsCount):this.config.size.width,height:this.config.o==='v'?this.config.size.height:Math.floor(this.config.size.height/this.config.cuboidsCount)};this.extra=this.config.o==='v'?this.config.size.width-(this.size.width*this.config.cuboidsCount):this.config.size.height-(this.size.height*this.config.cuboidsCount);},_configureStyles:function(){var middlepos=Math.ceil(this.config.cuboidsCount/2),positionStyle=this.pos<middlepos?{zIndex:(this.pos+1)*100,left:(this.config.o==='v')?this.size.width*this.pos:0,top:(this.config.o==='v')?0:this.size.height*this.pos}:{zIndex:(this.config.cuboidsCount-this.pos)*100,left:(this.config.o==='v')?this.size.width*this.pos:0,top:(this.config.o==='v')?0:this.size.height*this.pos};this.disperseFactor=this.config.disperseFactor*((this.pos+1)-middlepos);this.style=$.extend({'-webkit-transition':'-webkit-transform '+this.config.speed+'ms '+this.config.easing,'-moz-transition':'-moz-transform '+this.config.speed+'ms '+this.config.easing,'-o-transition':'-o-transform '+this.config.speed+'ms '+this.config.easing,'-ms-transition':'-ms-transform '+this.config.speed+'ms '+this.config.easing,'transition':'transform '+this.config.speed+'ms '+this.config.easing},positionStyle,this.size);this.animationStyles={side1:(this.config.o==='v')?{'transform':'translate3d( 0, 0, -'+(this.size.height/2)+'px )'}:{'transform':'translate3d( 0, 0, -'+(this.size.width/2)+'px )'},side2:(this.config.o==='v')?{'transform':'translate3d( 0, 0, -'+(this.size.height/2)+'px ) rotate3d( 1, 0, 0, -90deg )'}:{'transform':'translate3d( 0, 0, -'+(this.size.width/2)+'px ) rotate3d( 0, 1, 0, -90deg )'},side3:(this.config.o==='v')?{'transform':'translate3d( 0, 0, -'+(this.size.height/2)+'px ) rotate3d( 1, 0, 0, -180deg )'}:{'transform':'translate3d( 0, 0, -'+(this.size.width/2)+'px ) rotate3d( 0, 1, 0, -180deg )'},side4:(this.config.o==='v')?{'transform':'translate3d( 0, 0, -'+(this.size.height/2)+'px ) rotate3d( 1, 0, 0, -270deg )'}:{'transform':'translate3d( 0, 0, -'+(this.size.width/2)+'px ) rotate3d( 0, 1, 0, -270deg )'}};var measure=(this.config.o==='v')?this.size.height:this.size.width;this.sidesStyles={frontSideStyle:{width:(this.config.o==='v')?this.size.width+this.extra:this.size.width,height:(this.config.o==='v')?this.size.height:this.size.height+this.extra,backgroundColor:this.config.colorHiddenSides,transform:'rotate3d( 0, 1, 0, 0deg ) translate3d( 0, 0, '+(measure/2)+'px )'},backSideStyle:{width:this.size.width,height:this.size.height,backgroundColor:this.config.colorHiddenSides,transform:'rotate3d( 0, 1, 0, 180deg ) translate3d( 0, 0, '+(measure/2)+'px ) rotateZ( 180deg )'},rightSideStyle:{width:measure,height:(this.config.o==='v')?this.size.height:this.size.height+this.extra,left:(this.config.o==='v')?this.size.width/2-this.size.height/2:0,backgroundColor:this.config.colorHiddenSides,transform:'rotate3d( 0, 1, 0, 90deg ) translate3d( 0, 0, '+(this.size.width/2)+'px )'},leftSideStyle:{width:measure,height:(this.config.o==='v')?this.size.height:this.size.height+this.extra,left:(this.config.o==='v')?this.size.width/2-this.size.height/2:0,backgroundColor:this.config.colorHiddenSides,transform:'rotate3d( 0, 1, 0, -90deg ) translate3d( 0, 0, '+(this.size.width/2)+'px )'},topSideStyle:{width:(this.config.o==='v')?this.size.width+this.extra:this.size.width,height:measure,top:(this.config.o==='v')?0:this.size.height/2-this.size.width/2,backgroundColor:this.config.colorHiddenSides,transform:'rotate3d( 1, 0, 0, 90deg ) translate3d( 0, 0, '+(this.size.height/2)+'px )'},bottomSideStyle:{width:(this.config.o==='v')?this.size.width+this.extra:this.size.width,height:measure,top:(this.config.o==='v')?0:this.size.height/2-this.size.width/2,backgroundColor:this.config.colorHiddenSides,transform:'rotate3d( 1, 0, 0, -90deg ) translate3d( 0, 0, '+(this.size.height/2)+'px )'}};},getEl:function(){this.$el=$('<div/>').css(this.style).css(this.animationStyles.side1).append($('<div/>').addClass('sb-side').css(this.sidesStyles.frontSideStyle)).append($('<div/>').addClass('sb-side').css(this.sidesStyles.backSideStyle)).append($('<div/>').addClass('sb-side').css(this.sidesStyles.rightSideStyle)).append($('<div/>').addClass('sb-side').css(this.sidesStyles.leftSideStyle)).append($('<div/>').addClass('sb-side').css(this.sidesStyles.topSideStyle)).append($('<div/>').addClass('sb-side').css(this.sidesStyles.bottomSideStyle));this._showImage(this.config.prev);return this.$el;},_showImage:function(imgPos){var sideIdx,$item=this.config.items.eq(imgPos),imgParam={'background-size':this.config.size.width+'px '+this.config.size.height+'px'};imgParam.backgroundImage='url('+$item.find('img').attr('src')+')';switch(this.side){case 1:sideIdx=0;break;case 2:sideIdx=(this.config.o==='v')?4:2;break;case 3:sideIdx=1;break;case 4:sideIdx=(this.config.o==='v')?5:3;break;};imgParam.backgroundPosition=(this.config.o==='v')?-(this.pos*this.size.width)+'px 0px':'0px -'+(this.pos*this.size.height)+'px';this.$el.children().eq(sideIdx).css(imgParam);},rotate:function(callback){var self=this,animationStyle;setTimeout(function(){if(self.config.direction==='next'){switch(self.side){case 1:animationStyle=self.animationStyles.side2;self.side=2;break;case 2:animationStyle=self.animationStyles.side3;self.side=3;break;case 3:animationStyle=self.animationStyles.side4;self.side=4;break;case 4:animationStyle=self.animationStyles.side1;self.side=1;break;};}
1078else{switch(self.side){case 1:animationStyle=self.animationStyles.side4;self.side=4;break;case 2:animationStyle=self.animationStyles.side1;self.side=1;break;case 3:animationStyle=self.animationStyles.side2;self.side=2;break;case 4:animationStyle=self.animationStyles.side3;self.side=3;break;};}
1079self._showImage(self.config.current);var animateOut={},animateIn={};if(self.config.o==='v'){animateOut.left='+='+self.disperseFactor+'px';animateIn.left='-='+self.disperseFactor+'px';}
1080else if(self.config.o==='h'){animateOut.top='+='+self.disperseFactor+'px';animateIn.top='-='+self.disperseFactor+'px';}
1081self.$el.css(animationStyle).animate(animateOut,self.config.speed/2).animate(animateIn,self.config.speed/2,function(){if(callback){callback.call(self,self.pos);}});},this.config.sequentialFactor*this.pos+30);}};var logError=function(message){if(window.console){window.console.error(message);}};$.fn.slicebox=function(options){var self=$.data(this,'slicebox');if(typeof options==='string'){var args=Array.prototype.slice.call(arguments,1
1081);this.each(function(){if(!self){logError("cannot call methods on slicebox prior to initialization; "+"attempted to call method '"+options+"'");return;}
1082if(!$.isFunction(self[options])||options.charAt(0)==="_"){logError("no such method '"+options+"' for slicebox self");return;}
1083self[options].apply(self,args);});}
1084else{this.each(function(){if(self){self._init();}
1085else{self=$.data(this,'slicebox',new $.Slicebox(options,this));}});}
1086return self;};})(jQuery,window);;(function(){var slice=[].slice;(function($,window){"use strict";var BootstrapSwitch;BootstrapSwitch=(function(){function BootstrapSwitch(element,options){if(options==null){options={};}
1087this.$element=$(element);this.options=$.extend({},$.fn.bootstrapSwitch.defaults,{state:this.$element.is(":checked"),size:this.$element.data("size"),animate:this.$element.data("animate"),disabled:this.$element.is(":disabled"),readonly:this.$element.is("[readonly]"),indeterminate:this.$element.data("indeterminate"),inverse:this.$element.data("inverse"),radioAllOff:this.$element.data("radio-all-off"),onColor:this.$element.data("on-color"),offColor:this.$element.data("off-color"),onText:this.$element.data("on-text"),offText:this.$element.data("off-text"),labelText:this.$element.data("label-text"),handleWidth:this.$element.data("handle-width"),labelWidth:this.$element.data("label-width"),baseClass:this.$element.data("base-class"),wrapperClass:this.$element.data("wrapper-class")},options);this.prevOptions={};this.$wrapper=$("<div>",{"class":(function(_this){return function(){var classes;classes=[""+_this.options.baseClass].concat(_this._getClasses(_this.options.wrapperClass));classes.push(_this.options.state?_this.options.baseClass+"-on":_this.options.baseClass+"-off");if(_this.options.size!=null){classes.push(_this.options.baseClass+"-"+_this.options.size);}
1088if(_this.options.disabled){classes.push(_this.options.baseClass+"-disabled");}
1089if(_this.options.readonly){classes.push(_this.options.baseClass+"-readonly");}
1090if(_this.options.indeterminate){classes.push(_this.options.baseClass+"-indeterminate");}
1091if(_this.options.inverse){classes.push(_this.options.baseClass+"-inverse");}
1092if(_this.$element.attr("id")){classes.push(_this.options.baseClass+"-id-"+(_this.$element.attr("id")));}
1093return classes.join(" ");};})(this)()});this.$container=$("<div>",{"class":this.options.baseClass+"-container"});this.$on=$("<span>",{html:this.options.onText,"class":this.options.baseClass+"-handle-on "+this.options.baseClass+"-"+this.options.onColor});this.$off=$("<span>",{html:this.options.offText,"class":this.options.baseClass+"-handle-off "+this.options.baseClass+"-"+this.options.offColor});this.$label=$("<span>",{html:this.options.labelText,"class":this.options.baseClass+"-label"});this.$element.on("init.bootstrapSwitch",(function(_this){return function(){return _this.options.onInit.apply(element,arguments);};})(this));this.$element.on("switchChange.bootstrapSwitch",(function(_this){return function(e){if(false===_this.options.onSwitchChange.apply(element,arguments)){if(_this.$element.is(":radio")){return $("[name='"+(_this.$element.attr('name'))+"']").trigger("previousState.bootstrapSwitch",true);}else{return _this.$element.trigger("previousState.bootstrapSwitch",true);}}};})(this));this.$container=this.$element.wrap(this.$container).parent();this.$wrapper=this.$container.wrap(this.$wrapper).parent();this.$element.before(this.options.inverse?this.$off:this.$on).before(this.$label).before(this.options.inverse?this.$on:this.$off);if(this.options.indeterminate){this.$element.prop("indeterminate",true);}
1094this._init();this._elementHandlers();this._handleHandlers();this._labelHandlers();this._formHandler();this._externalLabelHandler();this.$element.trigger("init.bootstrapSwitch",this.options.state);}
1095BootstrapSwitch.prototype._constructor=BootstrapSwitch;BootstrapSwitch.prototype.setPrevOptions=function(){return this.prevOptions=$.extend(true,{},this.options);};BootstrapSwitch.prototype.state=function(value,skip){if(typeof value==="undefined"){return this.options.state;}
1096if(this.options.disabled||this.options.readonly){return this.$element;}
1097if(this.options.state&&!this.options.radioAllOff&&this.$element.is(":radio")){return this.$element;}
1098if(this.$element.is(":radio")){$("[name='"+(this.$element.attr('name'))+"']").trigger("setPreviousOptions.bootstrapSwitch");}else{this.$element.trigger("setPreviousOptions.bootstrapSwitch");}
1099if(this.options.indeterminate){this.indeterminate(false);}
1100value=!!value;this.$element.prop("checked",value).trigger("change.bootstrapSwitch",skip);return this.$element;};BootstrapSwitch.prototype.toggleState=function(skip){if(this.options.disabled||this.options.readonly){return this.$element;}
1101if(this.options.indeterminate){this.indeterminate(false);return this.state(true);}else{return this.$element.prop("checked",!this.options.state).trigger("change.bootstrapSwitch",skip);}};BootstrapSwitch.prototype.size=function(value){if(typeof value==="undefined"){return this.options.size;}
1102if(this.options.size!=null){this.$wrapper.removeClass(this.options.baseClass+"-"+this.options.size);}
1103if(value){this.$wrapper.addClass(this.options.baseClass+"-"+value);}
1104this._width();this._containerPosition();this.options.size=value;return this.$element;};BootstrapSwitch.prototype.animate=function(value){if(typeof value==="undefined"){return this.options.animate;}
1105value=!!value;if(value===this.options.animate){return this.$element;}
1106return this.toggleAnimate();};BootstrapSwitch.prototype.toggleAnimate=function(){this.options.animate=!this.options.animate;this.$wrapper.toggleClass(this.options.baseClass+"-animate");return this.$element;};BootstrapSwitch.prototype.disabled=function(value){if(typeof value==="undefined"){return this.options.disabled;}
1107value=!!value;if(value===this.options.disabled){return this.$element;}
1108return this.toggleDisabled();};BootstrapSwitch.prototype.toggleDisabled=function(){this.options.disabled=!this.options.disabled;this.$element.prop("disabled",this.options.disabled);this.$wrapper.toggleClass(this.options.baseClass+"-disabled");return this.$element;};BootstrapSwitch.prototype.readonly=function(value){if(typeof value==="undefined"){return this.options.readonly;}
1109value=!!value;if(value===this.options.readonly){return this.$element;}
1110return this.toggleReadonly();};BootstrapSwitch.prototype.toggleReadonly=function(){this.options.readonly=!this.options.readonly;this.$element.prop("readonly",this.options.readonly);this.$wrapper.toggleClass(this.options.baseClass+"-readonly");return this.$element;};BootstrapSwitch.prototype.indeterminate=function(value){if(typeof value==="undefined"){return this.options.indeterminate;}
1111value=!!value;if(value===this.options.indeterminate){return this.$element;}
1112return this.toggleIndeterminate();};BootstrapSwitch.prototype.toggleIndeterminate=function(){this.options.indeterminate=!this.options.indeterminate;this.$element.prop("indeterminate",this.options.indeterminate);this.$wrapper.toggleClass(this.options.baseClass+"-indeterminate");this._containerPosition();return this.$element;};BootstrapSwitch.prototype.inverse=function(value){if(typeof value==="undefined"){return this.options.inverse;}
1113value=!!value;if(value===this.options.inverse){return this.$element;}
1114return this.toggleInverse();};BootstrapSwitch.prototype.toggleInverse=function(){var $off,$on;this.$wrapper.toggleClass(this.options.baseClass+"-inverse");$on=this.$on.clone(true);$off=this.$off.clone(true);this.$on.replaceWith($off);this.$off.replaceWith($on);this.$on=$off;this.$off=$on;this.options.inverse=!this.options.inverse;return this.$element;};BootstrapSwitch.prototype.onColor=function(value){var color;color=this.options.onColor;if(typeof value==="undefined"){return color;}
1115if(color!=null){this.$on.removeClass(this.options.baseClass+"-"+color);}
1116this.$on.addClass(this.options.baseClass+"-"+value);this.options.onColor=value;return this.$element;};BootstrapSwitch.prototype.offColor=function(value){var color;color=this.options.offColor;if(typeof value==="undefined"){return color;}
1117if(color!=null){this.$off.removeClass(this.options.baseClass+"-"+color);}
1118this.$off.addClass(this.options.baseClass+"-"+value);this.options.offColor=value;return this.$element;};BootstrapSwitch.prototype.onText=function(value){if(typeof value==="undefined"){return this.options.onText;}
1119this.$on.html(value);this._width();this._containerPosition();this.options.onText=value;return this.$element;};BootstrapSwitch.prototype.offText=function(value){if(typeof value==="undefined"){return this.options.offText;}
1120this.$off.html(value);this._width();this._containerPosition();this.options.offText=value;return this.$element;};BootstrapSwitch.prototype.labelText=function(value){if(typeof value==="undefined"){return this.options.labelText;}
1121this.$label.html(value);this._width();this.options.labelText=value;return this.$element;};BootstrapSwitch.prototype.handleWidth=function(value){if(typeof value==="undefined"){return this.options.handleWidth;}
1122this.options.handleWidth=value;this._width();this._containerPosition();return this.$element;};BootstrapSwitch.prototype.labelWidth=function(value){if(typeof value==="undefined"){return this.options.labelWidth;}
1123this.options.labelWidth=value;this._width();this._containerPosition();return this.$element;};BootstrapSwitch.prototype.baseClass=function(value){return this.options.baseClass;};BootstrapSwitch.prototype.wrapperClass=function(value){if(typeof value==="undefined"){return this.options.wrapperClass;}
1124if(!value){value=$.fn.bootstrapSwitch.defaults.wrapperClass;}
1125this.$wrapper.removeClass(this._getClasses(this.options.wrapperClass).join(" "));this.$wrapper.addClass(this._getClasses(value).join(" "));this.options.wrapperClass=value;return this.$element;};BootstrapSwitch.prototype.radioAllOff=function(value){if(typeof value==="undefined"){return this.options.radioAllOff;}
1126value=!!value;if(value===this.options.radioAllOff){return this.$element;}
1127this.options.radioAllOff=value;return this.$element;};BootstrapSwitch.prototype.onInit=function(value){if(typeof value==="undefined"){return this.options.onInit;}
1128if(!value){value=$.fn.bootstrapSwitch.defaults.onInit;}
1129this.options.onInit=value;return this.$element;};BootstrapSwitch.prototype.onSwitchChange=function(value){if(typeof value==="undefined"){return this.options.onSwitchChange;}
1130if(!value){value=$.fn.bootstrapSwitch.defaults.onSwitchChange;}
1131this.options.onSwitchChange=value;return this.$element;};BootstrapSwitch.prototype.destroy=function(){var $form;$form=this.$element.closest("form");if($form.length){$form.off("reset.bootstrapSwitch").removeData("bootstrap-switch");}
1132this.$container.children().not(this.$element).remove();this.$element.unwrap().unwrap().off(".bootstrapSwitch").removeData("bootstrap-switch");return this.$element;};BootstrapSwitch.prototype._width=function(){var $handles,handleWidth;$handles=this.$on.add(this.$off);$handles.add(this.$label).css("width","");handleWidth=this.options.handleWidth==="auto"?Math.max(this.$on.width(),this.$off.width()):this.options.handleWidth;$handles.width(handleWidth);
1132this.$label.width((function(_this){return function(index,width){if(_this.options.labelWidth!=="auto"){return _this.options.labelWidth;}
1133if(width<handleWidth){return handleWidth;}else{return width;}};})(this));this._handleWidth=this.$on.outerWidth();this._labelWidth=this.$label.outerWidth();this.$container.width((this._handleWidth*2)+this._labelWidth+1);return this.$wrapper.width(this._handleWidth+this._labelWidth+1);};BootstrapSwitch.prototype._containerPosition=function(state,callback){if(state==null){state=this.options.state;}
1134this.$container.css("margin-left",(function(_this){return function(){var values;values=[0,"-"+_this._handleWidth+"px"];if(_this.options.indeterminate){return"-"+(_this._handleWidth/2)+"px";}
1135if(state){if(_this.options.inverse){return values[1];}else{return values[0];}}else{if(_this.options.inverse){return values[0];}else{return values[1];}}};})(this));if(!callback){return;}
1136return setTimeout(function(){return callback();},50);};BootstrapSwitch.prototype._init=function(){var init,initInterval;init=(function(_this){return function(){_this.setPrevOptions();_this._width();return _this._containerPosition(null,function(){if(_this.options.animate){return _this.$wrapper.addClass(_this.options.baseClass+"-animate");}});};})(this);if(this.$wrapper.is(":visible")){return init();}
1137return initInterval=window.setInterval((function(_this){return function(){if(_this.$wrapper.is(":visible")){init();return window.clearInterval(initInterval);}};})(this),50);};BootstrapSwitch.prototype._elementHandlers=function(){return this.$element.on({"setPreviousOptions.bootstrapSwitch":(function(_this){return function(e){return _this.setPrevOptions();};})(this),"previousState.bootstrapSwitch":(function(_this){return function(e){_this.options=_this.prevOptions;if(_this.options.indeterminate){_this.$wrapper.addClass(_this.options.baseClass+"-indeterminate");}
1138return _this.$element.prop("checked",_this.options.state).trigger("change.bootstrapSwitch",true);};})(this),"change.bootstrapSwitch":(function(_this){return function(e,skip){var state;e.preventDefault();e.stopImmediatePropagation();state=_this.$element.is(":checked");_this._containerPosition(state);if(state===_this.options.state){return;}
1139_this.options.state=state;_this.$wrapper.toggleClass(_this.options.baseClass+"-off").toggleClass(_this.options.baseClass+"-on");if(!skip){if(_this.$element.is(":radio")){$("[name='"+(_this.$element.attr('name'))+"']").not(_this.$element).prop("checked",false).trigger("change.bootstrapSwitch",true);}
1140return _this.$element.trigger("switchChange.bootstrapSwitch",[state]);}};})(this),"focus.bootstrapSwitch":(function(_this){return function(e){e.preventDefault();return _this.$wrapper.addClass(_this.options.baseClass+"-focused");};})(this),"blur.bootstrapSwitch":(function(_this){return function(e){e.preventDefault();return _this.$wrapper.removeClass(_this.options.baseClass+"-focused");};})(this),"keydown.bootstrapSwitch":(function(_this){return function(e){if(!e.which||_this.options.disabled||_this.options.readonly){return;}
1141switch(e.which){case 37:e.preventDefault();e.stopImmediatePropagation();return _this.state(false);case 39:e.preventDefault();e.stopImmediatePropagation();return _this.state(true);}};})(this)});};BootstrapSwitch.prototype._handleHandlers=function(){this.$on.on("click.bootstrapSwitch",(function(_this){return function(event){event.preventDefault();event.stopPropagation();_this.state(false);return _this.$element.trigger("focus.bootstrapSwitch");};})(this));return this.$off.on("click.bootstrapSwitch",(function(_this){return function(event){event.preventDefault();event.stopPropagation();_this.state(true);return _this.$element.trigger("focus.bootstrapSwitch");};})(this));};BootstrapSwitch.prototype._labelHandlers=function(){return this.$label.on({"click":function(e){return e.stopPropagation();},"mousedown.bootstrapSwitch touchstart.bootstrapSwitch":(function(_this){return function(e){if(_this._dragStart||_this.options.disabled||_this.options.readonly){return;}
1142e.preventDefault();e.stopPropagation();_this._dragStart=(e.pageX||e.originalEvent.touches[0].pageX)-parseInt(_this.$container.css("margin-left"),10);if(_this.options.animate){_this.$wrapper.removeClass(_this.options.baseClass+"-animate");}
1143return _this.$element.trigger("focus.bootstrapSwitch");};})(this),"mousemove.bootstrapSwitch touchmove.bootstrapSwitch":(function(_this){return function(e){var difference;if(_this._dragStart==null){return;}
1144e.preventDefault();difference=(e.pageX||e.originalEvent.touches[0].pageX)-_this._dragStart;if(difference<-_this._handleWidth||difference>0){return;}
1145_this._dragEnd=difference;return _this.$container.css("margin-left",_this._dragEnd+"px");};})(this),"mouseup.bootstrapSwitch touchend.bootstrapSwitch":(function(_this){return function(e){var state;if(!_this._dragStart){return;}
1146e.preventDefault();if(_this.options.animate){_this.$wrapper.addClass(_this.options.baseClass+"-animate");}
1147if(_this._dragEnd){state=_this._dragEnd>-(_this._handleWidth/2);_this._dragEnd=false;_this.state(_this.options.inverse?!state:state);}else{_this.state(!_this.options.state);}
1148return _this._dragStart=false;};})(this),"mouseleave.bootstrapSwitch":(function(_this){return function(e){return _this.$label.trigger("mouseup.bootstrapSwitch");};})(this)});};BootstrapSwitch.prototype._externalLabelHandler=function(){var $externalLabel;$externalLabel=this.$element.closest("label");return $externalLabel.on("click",(function(_this){return function(event){event.preventDefault();event.stopImmediatePropagation();if(event.target===$externalLabel[0]){return _this.toggleState();}};})(this));};BootstrapSwitch.prototype._formHandler=function(){var $form;$form=this.$element.closest("form");if($form.data("bootstrap-switch")){return;}
1149return $form.on("reset.bootstrapSwitch",function(){return window.setTimeout(function(){return $form.find("input").filter(function(){return $(this).data("bootstrap-switch");}).each(function(){return $(this).bootstrapSwitch("state",this.checked);});},1);}).data("bootstrap-switch",true);};
1149BootstrapSwitch.prototype._getClasses=function(classes){var c,cls,i,len;if(!$.isArray(classes)){return[this.options.baseClass+"-"+classes];}
1150cls=[];for(i=0,len=classes.length;i<len;i++){c=classes[i];cls.push(this.options.baseClass+"-"+c);}
1151return cls;};return BootstrapSwitch;})();$.fn.bootstrapSwitch=function(){var args,option,ret;option=arguments[0],args=2<=arguments.length?slice.call(arguments,1):[];ret=this;this.each(function(){var $this,data;$this=$(this);data=$this.data("bootstrap-switch");if(!data){$this.data("bootstrap-switch",data=new BootstrapSwitch(this,option));}
1152if(typeof option==="string"){return ret=data[option].apply(data,args);}});return ret;};$.fn.bootstrapSwitch.Constructor=BootstrapSwitch;return $.fn.bootstrapSwitch.defaults={state:true,size:null,animate:true,disabled:false,readonly:false,indeterminate:false,inverse:false,radioAllOff:false,onColor:"primary",offColor:"default",onText:"ON",offText:"OFF",labelText:"&nbsp;",handleWidth:"auto",labelWidth:"auto",baseClass:"bootstrap-switch",wrapperClass:"wrapper",onInit:function(){},onSwitchChange:function(){}};})(window.jQuery,window);}).call(this);;
1153/*!
1154	Autosize 3.0.13
1155	license: MIT
1156	http://www.jacklmoore.com/autosize
1157*/
1158(function(global,factory){if(typeof define==='function'&&define.amd){define(['exports','module'],factory);}else if(typeof exports!=='undefined'&&typeof module!=='undefined'){factory(exports,module);}else{var mod={exports:{}};factory(mod.exports,mod);global.autosize=mod.exports;}})(this,function(exports,module){'use strict';var set=typeof Set==='function'?new Set():(function(){var list=[];return{has:function has(key){return Boolean(list.indexOf(key)>-1);},add:function add(key){list.push(key);},'delete':function _delete(key){list.splice(list.indexOf(key),1);}};})();function assign(ta){var _ref=arguments[1]===undefined?{}:arguments[1];var _ref$setOverflowX=_ref.setOverflowX;var setOverflowX=_ref$setOverflowX===undefined?true:_ref$setOverflowX;var _ref$setOverflowY=_ref.setOverflowY;var setOverflowY=_ref$setOverflowY===undefined?true:_ref$setOverflowY;if(!ta||!ta.nodeName||ta.nodeName!=='TEXTAREA'||set.has(ta))return;var heightOffset=null;var overflowY=null;var clientWidth=ta.clientWidth;function init(){var style=window.getComputedStyle(ta,null);overflowY=style.overflowY;if(style.resize==='vertical'){ta.style.resize='none';}else if(style.resize==='both'){ta.style.resize='horizontal';}
1159if(style.boxSizing==='content-box'){heightOffset=-(parseFloat(style.paddingTop)+parseFloat(style.paddingBottom));}else{heightOffset=parseFloat(style.borderTopWidth)+parseFloat(style.borderBottomWidth);}
1160if(isNaN(heightOffset)){heightOffset=0;}
1161update();}
1162function changeOverflow(value){{var width=ta.style.width;ta.style.width='0px';ta.offsetWidth;ta.style.width=width;}
1163overflowY=value;if(setOverflowY){ta.style.overflowY=value;}
1164resize();}
1165function resize(){var htmlTop=window.pageYOffset;var bodyTop=document.body.scrollTop;var originalHeight=ta.style.height;ta.style.height='auto';var endHeight=ta.scrollHeight+heightOffset;if(ta.scrollHeight===0){ta.style.height=originalHeight;return;}
1166ta.style.height=endHeight+'px';clientWidth=ta.clientWidth;document.documentElement.scrollTop=htmlTop;document.body.scrollTop=bodyTop;}
1167function update(){var startHeight=ta.style.height;resize();var style=window.getComputedStyle(ta,null);if(style.height!==ta.style.height){if(overflowY!=='visible'){changeOverflow('visible');}}else{if(overflowY!=='hidden'){changeOverflow('hidden');}}
1168if(startHeight!==ta.style.height){var evt=document.createEvent('Event');evt.initEvent('autosize:resized',true,false);ta.dispatchEvent(evt);}}
1169var pageResize=function pageResize(){if(ta.clientWidth!==clientWidth){update();}};var destroy=(function(style){window.removeEventListener('resize',pageResize);ta.removeEventListener('input',update);ta.removeEventListener('keyup',update);ta.removeEventListener('autosize:destroy',destroy);set['delete'](ta);Object.keys(style).forEach(function(key){ta.style[key]=style[key];});}).bind(ta,{height:ta.style.height,resize:ta.style.resize,overflowY:ta.style.overflowY,overflowX:ta.style.overflowX,wordWrap:ta.style.wordWrap});ta.addEventListener('autosize:destroy',destroy);if('onpropertychange'in ta&&'oninput'in ta){ta.addEventListener('keyup',update);}
1170window.addEventListener('resize',pageResize);ta.addEventListener('input',update);ta.addEventListener('autosize:update',update);set.add(ta);if(setOverflowX){ta.style.overflowX='hidden';ta.style.wordWrap='break-word';}
1171init();}
1172function destroy(ta){if(!(ta&&ta.nodeName&&ta.nodeName==='TEXTAREA'))return;var evt=document.createEvent('Event');evt.initEvent('autosize:destroy',true,false);ta.dispatchEvent(evt);}
1173function update(ta){if(!(ta&&ta.nodeName&&ta.nodeName==='TEXTAREA'))return;var evt=document.createEvent('Event');evt.initEvent('autosize:update',true,false);ta.dispatchEvent(evt);}
1174var autosize=null;if(typeof window==='undefined'||typeof window.getComputedStyle!=='function'){autosize=function(el){return el;};autosize.destroy=function(el){return el;};autosize.update=function(el){return el;};}else{autosize=function(el,options){if(el){Array.prototype.forEach.call(el.length?el:[el],function(x){return assign(x,options);});}
1175return el;};autosize.destroy=function(el){if(el){Array.prototype.forEach.call(el.length?el:[el],destroy);}
1176return el;};autosize.update=function(el){if(el){Array.prototype.forEach.call(el.length?el:[el],update);}
1177return el;};}
1178module.exports=autosize;});;function sending(){var text=$('#box').val();if(!text.trim()){alert("Text area can't be empty!");return;}
1179$("#save-to-drive-btn").addClass('loading');var detailsText='\n\n';if($('#include_details').prop('checked')){for(var key in editor.optionsObject.details){if(editor.optionsObject.details[key]){if
1179(key==='character_count_no_spaces'){detailsText+=$('#'+key).parent('li').data('title')+' - '+editor.count['chars_no_spaces']+'\n';}
1180else{detailsText+=$('#'+key).parent('li').data('title')+' - '+editor.count[key]+'\n';}}}
1181text+=detailsText;}
1182var file=new Blob([text],{type:"text/plain;charset=utf-8"});loadGoogleLibraries(function(){auth(file);});}
1183function loadGoogleLibraries(callback){var gsiLoaded=typeof google!=='undefined'&&typeof google.accounts!=='undefined';var apiLoaded=typeof gapi!=='undefined';if(gsiLoaded&&apiLoaded){callback();return;}
1184var scriptsToLoad=0;var loaded=0;function checkLoaded(){loaded++;if(loaded===scriptsToLoad){callback();}}
1185if(!gsiLoaded){scriptsToLoad++;var script1=document.createElement('script');script1.src='https://accounts.google.com/gsi/client';script1.async=true;script1.defer=true;script1.onload=checkLoaded;document.body.appendChild(script1);}
1186if(!apiLoaded){scriptsToLoad++;var script2=document.createElement('script');script2.src='https://apis.google.com/js/api.js';script2.async=true;script2.defer=true;script2.onload=function(){gapi.load('client',checkLoaded);};document.body.appendChild(script2);}}
1187function auth(file){if(typeof google==='undefined'||typeof google.accounts==='undefined'){alert("Error loading Google libraries. Please try again.");$("#save-to-drive-btn").removeClass('loading');return;}
1188var client=google.accounts.oauth2.initTokenClient({client_id:google_client_id,scope:'https://www.googleapis.com/auth/drive.file',callback:function(tokenResponse){if(tokenResponse&&tokenResponse.access_token){gapi.load('client',function(){gapi.client.setToken(tokenResponse);insertFile(file);});}else{$("#save-to-drive-btn").removeClass('loading');}},});client.requestAccessToken();}
1189function getDate(){var today=new Date();var h=today.getHours();var m=today.getMinutes();var s=today.getSeconds();var dd=today.getDate();var mm=today.getMonth()+1;var yyyy=today.getFullYear();if(dd<10)dd='0'+dd;if(mm<10)mm='0'+mm;return h+":"+m+":"+s+" "+mm+'/'+dd+'/'+yyyy;}
1190function insertFile(fileData,callback){var boundary='-------314159265358979323846';var delimiter="\r\n--"+boundary+"\r\n";var close_delim="\r\n--"+boundary+"--";var reader=new FileReader();reader.readAsBinaryString(fileData);reader.onload=function(e){var contentType=fileData.type||"application/octet-stream";var metadata={'title':$('#file_name').val()+'_'+getDate(),'mimeType':contentType};var base64Data=btoa(reader.result);var multipartRequestBody=delimiter+'Content-Type: application/json\r\n\r\n'+
1191JSON.stringify(metadata)+
1192delimiter+'Content-Type: '+contentType+'\r\n'+'Content-Transfer-Encoding: base64\r\n'+'\r\n'+
1193base64Data+
1194close_delim;var request=gapi.client.request({'path':'/upload/drive/v2/files/','method':'POST','params':{'uploadType':'multipart'},'headers':{'Content-Type':'multipart/related; boundary="'+boundary+'"'},'body':multipartRequestBody});if(!callback){callback=function(file){var messageBox=$('#message_for_save_to_google_drive');if(file&&file.error){var errorMsg=file.error.message||'Unknown error';messageBox.html('<div class="alert alert-danger" style="display: none" id="google_drive_message">'+'<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>'+'<strong>Error: </strong>'+errorMsg+'</div>');$('#google_drive_message').slideDown();}else{messageBox.html('<div class="alert alert-success" style="display: none" id="google_drive_message">'+'<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>'+'<strong>'+editor.selectedLanguage.success+' </strong><a href="'+file.alternateLink+'" target="_blank">'+editor.selectedLanguage.your_document+'</a> '+editor.selectedLanguage.has_been_saved_to_Google_Drive+'</div>');$('#google_drive_message').slideDown();setTimeout(function(){$('#google_drive_message').slideUp();},10000);$("#save-to-drive-btn").removeClass('loading');$("#save-to-drive-btn").addClass('success');setTimeout(function(){$("#save-to-drive-btn").removeClass('success');},3000);}};}
1195request.execute(callback);};};function typingGame(){this.navArrows=$('#nav-arrows');this.slider=$('body #sb-slider');
1195this.shirtText=$("#shirt-text");this.validate_rules={"min_length":2,"max_length":false};this.loadGame=function(){var $this=this;this.slicebox=this.slider.slicebox({orientation:'r',cuboidsRandom:true,onReady:function(){$this.load(false);}});$("#skip a").on("click",function(){$this.next();$this.shirtText.removeClass('danger').focus();});this.shirtText.on("focus",function(){$(this).removeClass('danger');})};this.init=function(initSlice){var $this=this;if(initSlice){this.loadGame();this.initNext();}else{this.loadImage();}
1196if($.cookie('points'))
1197$('#points').html($.cookie('points'));this.shirtText.focus();};this.initNext=function(){var $this=this;this.navArrows.children(':first').on('click',function(){if($this.validate()){$this.next();$this.shirtText.removeClass('danger').focus();}
1198return false;});};this.load=function(status){if(status){$('#playingGame>div:first-child').removeClass('hidden');$('#playingGame>div:not(:first-child)').css('opacity',0).css('z-index','-10');}else{$('#playingGame>div:first-child').addClass('hidden');$('#playingGame>div:not(:first-child)').css('opacity',1).css('z-index','1');}}}
1199typingGame.prototype.next=function(){if(this.slider.children('li:last-child').hasClass('sb-current')){this.load(true);this.init(false);}else{this.slicebox.next();}};typingGame.prototype.validate=function(){var txt=$("#shirt-text").val().trim();if(txt&&txt.length>=this.validate_rules["min_length"]&&(this.validate_rules["max_length"]===false||txt.length<=this.validate_rules["max_length"])){this.sendStatistic();$("#shirt-text").val('');$('#points').html($.cookie('points'));return true;}else{$("#shirt-text").addClass('danger');return false}};typingGame.prototype.sendStatistic=function(){var img_data=this.slider.children(".sb-current");if($.cookie('points')){points=parseInt($.cookie('points'))+1;}else{points=1;}
1200$.cookie('points',points,{expires:365});$.ajax({type:"POST",url:"https://teespy.com/app/api/save-shirt-text",dataType:"json",data:{"campaign_id":img_data.attr("data-campaign-id"),"front_or_back":img_data.attr("data-front-or-back"),"text":$("#shirt-text").val()}});};typingGame.prototype.checkLoadedImages=function(campaignId,position){var imagesList={};if($.cookie('loadedImages'))
1201imagesList=JSON.parse($.cookie('loadedImages'));if(!imagesList[position+"_"+campaignId]){imagesList[position+"_"+campaignId]=1;$.cookie('loadedImages',JSON.stringify(imagesList),{expires:365});return true;}
1202return false;};typingGame.prototype.loadImage=function(){var $this=this;var slider=this.slider;$.ajax({type:"GET",url:"https://teespy.com/app/api/get-random-shirts",dataType:"json",async:true}).done(function(responseData){slider.html(null);$.each(responseData,function(key,data){if($this.checkLoadedImages(data["campaign_id"],data["front_or_back"])){slider.append('<li data-campaign-id='+data["campaign_id"]+' data-front-or-back='+data["front_or_back"]+'><img src="'+data.image_url+'" alt="shirt image"/></li>');}});$.ajax({type:"GET",url:"https://teespy.com/app/api/get-random-shirts",dataType:"json",async:true});if(slider.children('li').length<1)
1203$this.init(false);else
1204$this.init(true);});};var typingGame=new typingGame();;function DaleChallIndex(text,sentence_count){this.text=text;this.sentence_count=sentence_count;}
1205DaleChallIndex.prototype.getReadingLevel=function(){var readability;var index=this.getIndex();if(index>10){readability=editor.selectedLanguage.college_graduate;}else if(index>9){readability=editor.selectedLanguage.college_student;}else if(index>8){readability=editor.selectedLanguage['11_12th_grade'];}else if(index>7){readability=editor.selectedLanguage['9_10th_grade'];}else if(index>6){readability=editor.selectedLanguage['7_8th_grade'];}else if(index>5){readability=editor.selectedLanguage['5_6th_grade'];}else{readability=editor.selectedLanguage['<_4th_grade'];}
1206return readability;};DaleChallIndex.prototype.getIndex=function(){var difficult_words=this.getDifficultWords();var word_list=this.getWordList(),dale_chall_index;if(word_list.length!=0){dale_chall_index=0.1579*(100.0*difficult_words.length/word_list.length)+0.0496*(word_list.length/this.sentence_count);if(difficult_words.length/word_list.length>0.05)
1207dale_chall_index+=3.6365;dale_chall_index=Math.round(dale_chall_index*10)/10;percentage_difficult_words=Math.round(100*difficult_words.length/word_list.length);}
1208else
1209{dale_chall_index=0;}
1210return dale_chall_index;};DaleChallIndex.prototype.getWordList=function(){var words=this.text.replace(/[0-9]/g,'');words=words.replace(/'|-/g,'');words=words.toLowerCase();return words.split(/[\s\W\n]+/);};DaleChallIndex.prototype.getDifficultWords=function(){var difficult_words=[];var word_list=this.getWordList();for(var i=0;i<word_list.length;i++){if(!(word_list[i]in editor.simple_words)){difficult_words.push(word_list[i]);}
1211else{}}
1212return difficult_words;};;function SetGoal(){this.goalLengthAvailableTypes={min:"Minimum Goal",max:"Maximum Goal"};this.checkTypeAccessibility=function(arr){this.error=false;if(arr){this.goalTypeText=arr[1];switch(arr[1]){case'Words':arr[1]='word_count';break;case'Characters':arr[1]='character_count';break;case'Sentences':arr[1]='sentence_count';break;case'Paragraphs':arr[1]='paragraph_count';break;case'Pages':arr[1]='avg_page_by_word';break;case'Reading Time':arr[1]='reading_time';break;case'Speaking Time':arr[1]='speaking_time';break;case'Publisher Words':arr[1]='words_manuscript';break;}
1213this.qty=parseInt(arr[0]);this.goalType=arr[1];this.goalLengthType=arr[2];}
1214else{this.goalType=$("#goalType").val();
1214this.goalTypeText=$("#goalType option:selected").text();this.qty=$("#goalQty").val();this.goalLengthType=$("#goalLengthType").val();}
1215if(Math.floor(this.qty)!=this.qty||!$.isNumeric(this.qty)){this.error=editor.selectedLanguage.please_set_valid_quantity_for_the_goal;this.showError();}
1216if(!editor.optionsObject.details[this.goalType]){this.error=editor.selectedLanguage.you_need_to_check+'" '+this.goalTypeText+' "'+editor.selectedLanguage.type_from_options_details_tab;this.showError();}
1217if(!this.goalLengthAvailableTypes[this.goalLengthType]){this.error=editor.selectedLanguage.you_need_to_choose_minimum_or_maximum_goal_type;this.showError();}
1218return this.error?false:true;};this.showError=function(){var errorTxt='<div class="alert alert-warning fade in">'
1219+'<a href="#" class="close" data-dismiss="alert" aria-label="close" title="close">×</a>'
1220+'<strong>'+editor.selectedLanguage.warning+'</strong> '+this.error
1221+'</div>';$('.errorMsgBox').append(errorTxt);}}
1222SetGoal.prototype.allowedChars=function(e,$this){if($.inArray(e.keyCode,[46,8])!==-1||(e.keyCode==65&&e.ctrlKey===true)||(e.keyCode==67&&e.ctrlKey===true)||(e.keyCode==88&&e.ctrlKey===true)||(e.keyCode>=35&&e.keyCode<=39)){return;}
1223if(($this.val().length==0&&e.keyCode===96)||((e.shiftKey||(e.keyCode<48||e.keyCode>57))&&(e.keyCode<96||e.keyCode>105))){e.preventDefault();}};SetGoal.prototype.set=function(arr){var savedObject={'buttons':{}};if(!this.checkTypeAccessibility(arr))
1224return false;this.goal={"qty":this.qty,"type":this.goalType,"length":this.goalLengthType};if(arr){switch(arr[1]){case'Words':arr[1]='word_count';break;case'Characters':arr[1]='character_count';break;case'Sentences':arr[1]='sentence_count';break;case'Paragraphs':arr[1]='paragraph_count';break;case'Pages':arr[1]='avg_page_by_word';break;case'Reading Time':arr[1]='reading_time';break;case'Speaking Time':arr[1]='speaking_time';break;case'Publisher Words':arr[1]='words_manuscript';break;}
1225this.goal={'qty':parseInt(arr[0]),'type':arr[1],'length':arr[2]}}
1226savedObject.buttons={'goalViewBox':this.goal};editor.changeOption(savedObject);this.updateGoalBox();$('#set-goal-modal').modal('hide');return true;};SetGoal.prototype.updateGoalBox=function(){if(editor.optionsObject.buttons['goalViewBox']){var cookieGoal=editor.optionsObject.buttons['goalViewBox'];this.goalBox=$("#goalViewBox");if(this.goalBox.hasClass('hidden'))
1227this.goalBox.removeClass('hidden');var goalTypeText=$("#goalType option[value='"+cookieGoal.type+"']").data('value');var written_count;if(cookieGoal.type==='reading_time'||cookieGoal.type==='speaking_time'){if(editor.count[cookieGoal.type].indexOf(editor.selectedLanguage.sec)>-1){written_count=Math.round((editor.count[cookieGoal.type].replace(editor.selectedLanguage.sec,'').trim()/60)*100)/100;}
1228else if(editor.count[cookieGoal.type].indexOf(editor.selectedLanguage.mins)>-1){written_count=editor.count[cookieGoal.type].replace(editor.selectedLanguage.mins,'').trim();}
1229else if(editor.count[cookieGoal.type].indexOf('hrs')>-1){written_count=editor.count[cookieGoal.type].replace(editor.selectedLanguage.hrs,'').trim()*60;}}
1230else{written_count=editor.count[cookieGoal.type];}
1231var goal_text=goalTypeText.toLowerCase().replace(' ','_')+'_for_goal_progress_bar';$('.progress #percent_text, .progress #percent_text1, .progress-bar div').text(editor.commaSeparateNumber([written_count])+' / '+editor.commaSeparateNumber([cookieGoal.qty])+" "+editor.selectedLanguage[goal_text]);$('#goalViewBox input[name="goal_type"]').val(goalTypeText);$('#goalViewBox input[name="goal_count"]').val(cookieGoal.qty);$('#goalViewBox input[name="written_count"]').val(written_count);$('#goalViewBox input[name="goal_length_type"]').val(cookieGoal.length);var percent=(100*(written_count))/(cookieGoal.qty);if(percent<=100){$("#goal-progress-bar, #goal-progress-bar1").css("width",percent+"%");}else{$("#goal-progress-bar, #goal-progress-bar1").css("width","100%");}
1232if(written_count>=cookieGoal.qty){$('#share-item-goal-link').show();this.goalBox.css('width','233px');if(!this.goalBox.hasClass('riche')){this.goalBox.addClass('riche');if(cookieGoal.length=='max')
1233this.goalBox.addClass('maximum');}else{if(cookieGoal.length=='min')
1234this.goalBox.removeClass('maximum');else if(!this.goalBox.hasClass('maximum'))
1235this.goalBox.addClass('maximum');}}else{$('#share-item-goal-link').hide();if(this.goalBox.hasClass('riche'))
1236this.goalBox.removeClass('riche');this.goalBox.css('width','212px');if(this.goalBox.hasClass('maximum'))
1237this.goalBox.removeClass('maximum');}}};SetGoal.prototype.setDefaultValues=function(){if(editor.optionsObject.buttons['goalViewBox']){$("#goalQty").val('');$("#goalType option[value='word_count']").attr('selected','selected');$("#goalLengthType option[value='min']").attr('selected','selected');}};SetGoal.prototype.disableGoal=function(arr){if(arr){var dataObject={'goal_count':arr[0],'goal_type':arr[1],'goal_length_type':arr[2]};$.ajax({type:"POST",url:"site/disable-goal",data:dataObject});}
1238var savedObject={'buttons':{}};$("#goalViewBox").addClass("hidden");$('#goal-btn').removeClass('active');$("#goalType option[value='character_count']").attr('selected','selected');$("#goalQty").val(null);savedObject.buttons={'goalViewBox':false};editor.changeOption(savedObject);};var goal=new SetGoal();;'use strict';function Translate(){}
1239Translate.prototype.setWcLanguage=function(){$.getJSON("../json/"+editor.optionsObject.wcLanguage+".json",function(json){editor.selectedLanguage=json.data;editor.wordCountInternational();editor.wordsPerMinuteForReading();editor.wordsPerMinuteForSpeaking();editor.showActivities();jQuery.ajax({type:"POST",url:"site/get-revisions"}).done(function(msg2){$('#revisions_ul').empty().append(msg2);$('[data-tr-detail="revision"]').each(function(s_key,s_value){$(s_value).text(editor.translateDate($(s_value).text()));});});$.each(editor.selectedLanguage,function(key,value){var trTag=$('[data-tr-detail="'+key+'"]');var text='';if(key==='words_characters'){if(editor.count['word_count']!==1){text=editor.count['word_count']+' '+editor.selectedLanguage['words'];}
1240else{text=editor.count['word_count']+' '+editor.selectedLanguage['word'];}
1241if(editor.count['character_count']!==1){text+=' '+editor.count['character_count']+' '+editor.selectedLanguage['characters'];}
1242else{text+=' '+editor.count['character_count']+' '+editor.selectedLanguage['character'];}
1243trTag.text(text);}
1244else if(key==='start_typing_or_copy_and_paste_your_document_here'||key==='quantity'||key==='leave_your_notes'||key==='email'||key==='password'||key==='re_enter_password'||key==='re_enter_email'){trTag.attr('placeholder',value);}
1245else if((key==='hide_details_panel'&&editor.optionsObject.detailsContainer)||(key==='show_details_panel'&&!editor.optionsObject.detailsContainer)){$('.hide_button').attr('title',value);}
1246else if(key==='read_about_what_this_means'){trTag.attr('data-original-title',value);}
1247else if(key==='embed_this'||key==='share_this'||key==='disable_goal'){trTag.attr('title',value);}
1248else if(key==='text_for_details_sharing'){trTag.text(value+' '+abs_path+' #wordcount @wordcounter_net')}
1249else if(key==='my_saved_draft'){trTag.val(value);}
1250else if(key==="date_format1"||key==="date_format2"||key==="date_format3"||
1250key==="date_format4"||key==="date_format5"||key==="date_format6"||key==="date_format7"||key==="date_format8"||key==="date_format9"||key==="date_format10"||key==="with_a_leading_zero"||key==="24_hour_with_a_leading_zero"||key==="24_hour"){trTag.text(editor.translateDate($('[data-tr-detail-hidden="'+key+'"]').text()));}
1251else{trTag.text(value);}});});};var translate=new Translate();;(function(){'use strict';if(window.__wcCsrfPatchInstalled)return;window.__wcCsrfPatchInstalled=true;function getCsrfToken(){try{if(window.yii&&typeof yii.getCsrfToken==='function'){return yii.getCsrfToken()||'';}}catch(_){}
1252var el=document.querySelector('meta[name="csrf-token"]');return(el&&el.getAttribute('content'))?el.getAttribute('content'):'';}
1253function isSameOrigin(url){try{var u=new URL(url,window.location.href);return u.origin===window.location.origin;}catch(e){return true;}}
1254try{if(typeof window.fetch==='function'){var _origFetch=window.fetch;window.fetch=function(input,init){try{init=init||{};var method=(init.method||(input&&input.method)||'GET');method=String(method).toUpperCase();var url='';if(typeof input==='string')url=input;else if(input&&input.url)url=input.url;if(method!=='GET'&&method!=='HEAD'&&method!=='OPTIONS'&&isSameOrigin(url)){var tok=getCsrfToken();if(tok){if(!init.headers)init.headers={};if(init.headers instanceof Headers){if(!init.headers.has('X-CSRF-Token'))init.headers.set('X-CSRF-Token',tok);}else if(Array.isArray(init.headers)){var has=init.headers.some(function(h){return h&&h[0]&&String(h[0]).toLowerCase()==='x-csrf-token';});if(!has)init.headers.push(['X-CSRF-Token',tok]);}else{var h=init.headers;if(!('X-CSRF-Token'in h)&&!('x-csrf-token'in h))h['X-CSRF-Token']=tok;}}}}catch(_){}
1255return _origFetch.apply(this,arguments);};}}catch(_){}
1256try{if(window.XMLHttpRequest&&XMLHttpRequest.prototype){var _open=XMLHttpRequest.prototype.open;var _send=XMLHttpRequest.prototype.send;var _setHeader=XMLHttpRequest.prototype.setRequestHeader;XMLHttpRequest.prototype.open=function(method,url){try{this.__wc_csrf_method=method;this.__wc_csrf_url=url;this.__wc_headers=this.__wc_headers||{};}catch(_){}
1257return _open.apply(this,arguments);};XMLHttpRequest.prototype.setRequestHeader=function(name,value){try{this.__wc_headers=this.__wc_headers||{};this.__wc_headers[String(name).toLowerCase()]=true;}catch(_){}
1258return _setHeader.apply(this,arguments);};XMLHttpRequest.prototype.send=function(body){try{var method=String(this.__wc_csrf_method||'GET').toUpperCase();var url=this.__wc_csrf_url||'';if(method!=='GET'&&method!=='HEAD'&&method!=='OPTIONS'&&isSameOrigin(url)){var tok=getCsrfToken();if(tok){var already=this.__wc_headers&&this.__wc_headers['x-csrf-token'];if(!already)this.setRequestHeader('X-CSRF-Token',tok);}}}catch(_){}
1259return _send.apply(this,arguments);};}}catch(_){}})();function escapeHTML(str){if(str===null||str===undefined)return'';return String(str).replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/"/g,'&quot;').replace(/'/g,'&#39;').replace(/\//g,'&#x2F;');}
1260function t(key){var v=(editor&&editor.selectedLanguage&&editor.selectedLanguage[key])||'';return escapeHTML(String(v));}
1261function Editor(){'use strict';this.box=$("#box");this.node_for_box=document.getElementById("box");this.count_for_selection=[];this.count=[];this.count['word_count']=0;this.count['character_count']=0;this.count['sentence_count']=0;this.count['paragraph_count']=0;this.count['avg_page_by_word']=0;this.searchedString='';this.replacementString='';this.replacementPos=0;this.firstText='';this.secondText='';this.wholeWords='';this.selectedLanguage={};this.uniqueWords=[];this.lastFocus='';this.body=$("body");this.thesaurus_word=[];this.highlighted_word_array=[];this.cookieOptionsObject={};this.fileContent={content:'',error:''};this.word_exceptions={'geographic':4,'geographics':4};this.addingStopWords={};this.voices=null;this.langs=[['Afrikaans',['af-ZA']],['Bahasa Indonesia',['id-ID']],['Bahasa Melayu',['ms-MY']],['Català',['ca-ES']],['Čeština',['cs-CZ']],['Dansk',['da-DK']],['Deutsch',['de-DE']],['English',['en-AU','Australia'],['en-CA','Canada'],['en-IN','India'],['en-NZ','New Zealand'],['en-ZA','South Africa'],['en-GB','United Kingdom'],['en-US','United States']],['Español',['es-AR','Argentina'],['es-BO','Bolivia'],['es-CL','Chile'],['es-CO','Colombia'],['es-CR','Costa Rica'],['es-EC','Ecuador'],['es-SV','El Salvador'],['es-ES','España'],['es-US','Estados Unidos'],['es-GT','Guatemala'],['es-HN','Honduras'],['es-MX','México'],['es-NI','Nicaragua'],['es-PA','Panamá'],['es-PY','Paraguay'],['es-PE','Perú'],['es-PR','Puerto Rico'],['es-DO','República Dominicana'],['es-UY','Uruguay'],['es-VE','Venezuela']],['Euskara',['eu-ES']],['Filipino',['fil-PH']],['Français',['fr-FR']],['Galego',['gl-ES']],['Hrvatski',['hr_HR']
1261],['IsiZulu',['zu-ZA']],['Íslenska',['is-IS']],['Italiano',['it-IT','Italia'],['it-CH','Svizzera']],['Lietuvių',['lt-LT']],['Magyar',['hu-HU']],['Nederlands',['nl-NL']],['Norsk bokmål',['nb-NO']],['Polski',['pl-PL']],['Português',['pt-BR','Brasil'],['pt-PT','Portugal']],['Română',['ro-RO']],['Slovenščina',['sl-SI']],['Slovenčina',['sk-SK']],['Suomi',['fi-FI']],['Svenska',['sv-SE']],['Tiếng Việt',['vi-VN']],['Türkçe',['tr-TR']],['Ελληνικά',['el-GR']],['български',['bg-BG']],['Pусский',['ru-RU']],['Српски',['sr-RS']],['Українська',['uk-UA']],['한국어',['ko-KR']],['中文',['cmn-Hans-CN','普通话 (中国大陆)'],['cmn-Hans-HK','普通话 (香港)'],['cmn-Hant-TW','中文 (台灣)'],['yue-Hant-HK','粵語 (香港)']],['日本語',['ja-JP']],['हिन्दी',['hi-IN']],['ภาษาไทย',['th-TH']]];this.recording=false;this.optionsObject={"font":"Arial","detailsContainer":true,"keywordDensityPanel":true,"keywordDensityAccordion":true,"activityPanel":true,"activityAccordion":true,"activityAmount":5,"activityType":'daily',"detailsPanel":true,"detailsPanelAccordion":true,"keywordDensityAmount":'10',"keywordDensityWordsCommon":false,"keywordDensityConsecutive":'1',"readRate":'1',"readPitch":'1',"readVoices":'0',"selectLanguage":'7','selectDialect':'en-US','wordsPerMinuteForReading':'275','wordsPerMinuteForSpeaking':'180','lettersPerMinuteForHandWriting':'68',"version":"advanced","theme":"default",'dateFormat':'d/m/Y','timeFormat':'h:i A',"wcLanguage":"english","boxHeight":{"box_height":false,"boxAutoSize":true},"details":{"word_count":true,"unique_word_count":false,"character_count":true,"character_count_no_spaces":false,"sentence_count":true,"longest_sentence_words":false,"shortest_sentence_words":false,"avg_sentence_words":false,"avg_sentence_chars":false,"avg_word_length":false,"avg_page_by_word":false,"count_words_syllables":false,"paragraph_count":true,"lines_count":false,"words_manuscript":false,"reading_level":true,"reading_time":true,"speaking_time":true,"hand_writing_time":false},"buttons":{"paste-btn":true,"spell-btn":true,"case-btn":true,"text-to-speech-btn":false,"speech-btn":false,"goal-btn":true,"goalViewBox":false,"clear-btn":true,"undo-btn":true,"redo-btn":true,"save-btn":true,"save-to-drive-btn":false,"speed-btn":false,"copy":false,"print-btn":false,"upload-btn":false,"download-btn":false,"revisions-btn":true,"options-btn":true,"more-btn":true,"thesaurus-btn":true,"clean-text-btn":false,"activity-btn":true,"find-and-replace-btn":false}};this.basicVersionOptions={"detailsContainer":false,"keywordDensityPanel":false,"keywordDensityAccordion":false,"activityPanel":false,"activityAccordion":false,"activityAmount":5,"activityType":'daily',"detailsPanel":false,"detailsPanelAccordion":false,"keywordDensityAmount":'10',"keywordDensityWordsCommon":false,"keywordDensityConsecutive":'1',"version":"basic","details":{"word_count":true,"unique_word_count":false,"character_count":true,"character_count_no_spaces":false,"sentence_count":false,"longest_sentence_words":false,"shortest_sentence_words":false,"avg_sentence_words":false,"avg_sentence_chars":false,"avg_word_length":false,"avg_page_by_word":false,"count_words_syllables":false,"lines_count":false,"words_manuscript":false,"paragraph_count":false,"reading_level":false,"reading_time":false,"speaking_time":false,"hand_writing_time":false},"buttons":{"paste-btn":false,"spell-btn":false,"case-btn":false,"text-to-speech-btn":false,"speech-btn":false,"goal-btn":false,"goalViewBox":false,"clear-btn":false,"undo-btn":false,"redo-btn":false,"save-btn":false,"save-to-drive-btn":false,"speed-btn":false,"copy":false,"print-btn":false,"upload-btn":false,"download-btn":false,"revisions-btn":false,"options-btn":false,"more-btn":false,"thesaurus-btn":false,"clean-text-btn":false,"activity-btn":false,"find-and-replace-btn":false}};this.advancedVersionOptions={"detailsContainer":true,"keywordDensityPanel":true,"keywordDensityAccordion":true,"activityPanel":true,"activityAccordion":true,"activityAmount":5,"activityType":'daily',"detailsPanel":true,"detailsPanelAccordion":true,"keywordDensityAmount":'10',"keywordDensityWordsCommon":false,"keywordDensityConsecutive":'1',"version":"advanced","details":{"word_count":true,"unique_word_count":false,"character_count":true,"character_count_no_spaces":false,"sentence_count":true,"longest_sentence_words":false,"shortest_sentence_words":false,"avg_sentence_words":false,"avg_sentence_chars":false,"avg_word_length":false,"avg_page_by_word":false,"count_words_syllables":false,"lines_count":false,"words_manuscript":false,"paragraph_count":true,"reading_level":true,"reading_time":true,"speaking_time":true,"hand_writing_time":false},"buttons":{"paste-btn":true,"spell-btn":true,"case-btn":true,"text-to-speech-btn":false,"speech-btn":false,"goal-btn":true,"goalViewBox":false,"clear-btn":true,"undo-btn":true,"redo-btn":true,"save-btn":true,"save-to-drive-btn":false,"speed-btn":false,"copy":false,"print-btn":false,"upload-btn":false,"download-btn":false,"revisions-btn":true,"options-btn":true,"more-btn":true,"thesaurus-btn":true,"clean-text-btn":false,"activity-btn":true,"find-and-replace-btn":false}};this.simple_words={};}
1262String.prototype.toTitleCase=function(){var i,j,str,lowers,uppers;str=this.replace(/([^\W_]+[^\s-]*) */g,function(txt){return txt.charAt(0).toUpperCase()+txt.substr(1).toLowerCase();});lowers=['A','An','The','And','But','Or','For','Nor','As','At','By','For','From','In','Into','Near','Of','On','Onto','To','With'];for(i=0,j=lowers.length;i<j;i++)
1263str=str.replace(new RegExp('\\s'+lowers[i]+'\\s','g'),function(txt){return txt.toLowerCase();});uppers=['Id','Tv'];for(i=0,j=uppers.length;i<j;i++)
1264str=str.replace(new RegExp('\\b'+uppers[i]+'\\b','g'),uppers[i].toUpperCase());return str;};String.prototype.toSentenceCase=function(){var str;var rg=/(^\w{1}|(\.|\?|!)\s+\w{1})/gi;str=this.toLowerCase().replace(rg,function(toReplace){return toReplace.toUpperCase();});return str;};Editor.prototype.changeCase=function(event,letter_case){var event=event||window.event;var text='';var selection='';event.preventDefault();if(this.lastFocus&&this.box.selection()!=''){var start=this.box.prop("selectionStart");var end=this.box.prop("selectionEnd");this.lastFocus.focus();if('WebkitAppearance'in document.documentElement.style){switch(letter_case){case'upper':selection=this.box.selection().toUpperCase();break;case'lower':selection=this.box.selection().toLowerCase();break;case'title':selection=this.box.selection().toTitleCase();break;case'sentence':selection=this.box.selection().toSentenceCase();break;}
1265this.insertTextAtSelection(selection);this.setSelectionRange(this.node_for_box,start,end);}
1266else{switch(letter_case){case'upper':this.box.selection('replace',{text:editor.box.selection().toUpperCase()});break;case'lower':this.box.selection('replace',{text:editor.box.selection().toLowerCase()});break;case'title':this.box.selection('replace',{text:editor.box.selection().toTitleCase()});break;case'sentence':this.box.selection('replace',{text:editor.box.selection().toSentenceCase()});break;}}
1267this.lastFocus=null;}
1268else{(this.lastFocus&&typeof this.lastFocus.focus==='function'?this.lastFocus:this.box)[0].focus();switch(letter_case){case'upper':text=this.box.val().toUpperCase();break;case'lower':text=this.box.val().toLowerCase();break;case'title':text=this.box.val().toTitleCase();break;case'sentence':text=this.box.val().toSentenceCase();break;}
1269if('WebkitAppearance'in document.documentElement.style){document.execCommand('selectAll',false,null);this.insertTextAtSelection(text);}
1270else{this.box.val(text);}}
1271this.wordCountInternational();this.keywordDensity();if(window.location.href==abs_path){localStorage.setItem('text',this.box.val());}
1272return(true);};Editor.prototype.getCaretCharacterOffsetWithin=function(element){var caretOffset=0;var doc=element.ownerDocument||element.document;var win=doc.defaultView||doc.parentWindow;var sel;
1272if(typeof win.getSelection!="undefined"){sel=win.getSelection();if(sel.rangeCount>0){var range=win.getSelection().getRangeAt(0);var preCaretRange=range.cloneRange();preCaretRange.selectNodeContents(element);preCaretRange.setEnd(range.endContainer,range.endOffset);caretOffset=preCaretRange.toString().length;}}else if((sel=doc.selection)&&sel.type!="Control"){var textRange=sel.createRange();var preCaretTextRange=doc.body.createTextRange();preCaretTextRange.moveToElementText(element);preCaretTextRange.setEndPoint("EndToEnd",textRange);caretOffset=preCaretTextRange.text.length;}
1273return caretOffset;};Editor.prototype.getCursorPositionInTextarea=function(el){var pos=0;if('selectionStart'in el){pos=el.selectionStart;}else if('selection'in document){el.focus();var Sel=document.selection.createRange();var SelLength=document.selection.createRange().text.length;Sel.moveStart('character',-el.value.length);pos=Sel.text.length-SelLength;}
1274return pos;};Editor.prototype.throttle=function(f,delay){var timer=null;return function(){var context=this,args=arguments;clearTimeout(timer);timer=window.setTimeout(function(){f.apply(context,args);},delay||300);};};Editor.prototype.init=function(){this.addSimpleWords();if(typeof variable_for_index_page!='undefined'){if('webkitSpeechRecognition'in window){this.speechRecog=new webkitSpeechRecognition();this.speechRecog.continuous=true;this.speechRecog.interimResults=true;}
1275else{$("#btn-speech-btn").parent().css({'opacity':'0.5','pointer-events':'none'});$("#btn-speech-btn").parent().parent().attr('title','Requires chrome browser');$('label[for="btn-speech-btn"], a[href="#collapseForSpeech"]').css('pointer-events','none');$('#talk_to_type_requires').append('<br /><small style="color:red">Requires Chrome</small>');}
1276var savedObject={'boxHeight':{}};var $this=this;if($.cookie('optionsObject')){this.cookieOptionsObject=JSON.parse($.cookie('optionsObject'));try{if(!this.cookieOptionsObject.buttons)this.cookieOptionsObject.buttons={};if(typeof this.cookieOptionsObject.buttons['paste-btn']==='undefined'){this.cookieOptionsObject.buttons['paste-btn']=(this.cookieOptionsObject.version==='basic')?false:true;}}catch(e){}
1277$.getJSON("../json/"+this.cookieOptionsObject.wcLanguage+".json",function(json){editor.selectedLanguage=json.data;editor.changeOption(editor.cookieOptionsObject);});}
1278else{$.cookie('optionsObject',JSON.stringify(this.optionsObject),{expires:365});$.getJSON("../json/"+this.optionsObject.wcLanguage+".json",function(json){editor.selectedLanguage=json.data;editor.setEditorOptions();});}
1279if(!('WebkitAppearance'in document.documentElement.style)){var savedObjectURC={buttons:{'undo-btn':false,'redo-btn':false,'clear-btn':false}};this.changeOption(savedObjectURC);$("#btn-undo-btn, #btn-redo-btn, #btn-clear-btn").parent().parent().parent().parent().attr('title','Requires webkit browser');$("#btn-undo-btn, #btn-redo-btn, #btn-clear-btn").parent().parent().parent().css({'opacity':'0.5','pointer-events':'none'});$('label[for="btn-undo-btn"], label[for="btn-redo-btn"], label[for="btn-clear-btn"]').css('pointer-events','none');$('#clear_requires, #undo_requires, #redo_requires').append('<br /><small style="color:red">Requires Chrome or Safari</small>');}
1280$(window).on("load",function(){$this.wordCountInternational();$this.keywordDensity();if(localStorage.getItem('goal_submit')){if(user_id_for_goal!==undefined){$('#set-goal-modal').modal('toggle');editor.getUserGoals(user_id_for_goal);if(!editor.optionsObject.buttons.goalViewBox){$.ajax({type:"GET",url:"site/unset-goal",success:function(data){if(data.response==1){}}});}}
1281localStorage.removeItem('goal_submit');}
1282if(user_id_for_goal===undefined){$('#goal-btn').removeClass('active');}});if($.cookie('text')){$.cookie('text',null,{path:'/'});}
1283if(localStorage.getItem('text')){this.box.val(localStorage.getItem('text'));}
1284$("#details .task-list-item input[type='checkbox']").bootstrapSwitch();$("#buttons .task-list-item input[type='checkbox']").bootstrapSwitch();this.box.keydown($this.throttle(function(){$this.wordCountInternational();$this.keywordDensity();})).keypress($this.throttle(function(e){$this.wordCountInternational();$this.keywordDensity();})).focus($this.throttle(function(e){$this.wordCountInternational();$this.keywordDensity();if(window.location.href==abs_path){setTimeout(function(){localStorage.setItem('text',$this.box.val());},100);}
1285setTimeout(function(){if($this.optionsObject.boxHeight['boxAutoSize']){autosize($this.box);}
1286else{autosize.destroy($this.box);$this.box.height($this.optionsObject.boxHeight['box_height']);$this.box.css('overflow-y','auto');}},10);})).keyup($this.throttle(function(e){$this.wordCountInternational();$this.keywordDensity();if($this.optionsObject.boxHeight['boxAutoSize']){autosize($this.box);}
1287else{autosize.destroy($this.box);$this.box.height($this.optionsObject.boxHeight['box_height']);$this.box.css('overflow-y','auto');}
1288if(window.location.href==abs_path){localStorage.setItem('text',$this.box.val());}})).mouseup(function(e){setTimeout(function(){$this.wordCountInternational();$this.keywordDensity();},0);}).on('select',$this.throttle(function(){$this.wordCountInternational();$this.keywordDensity();},50)).on('load',function(){$this.wordCountInternational();$this.keywordDensity();});$('body').mousedown(function(e){var cursorPosition=editor.getCursorPositionInTextarea(editor.node_for_box);if(!$(e.target).is('#box')&&!$(e.target).is('#case-btn')&&!$(e.target).parent().is('#case-btn')&&!$(e.target).is('#thesaurus-btn')&&!$(e.target).parent().is('#thesaurus-btn')&&!$(e.target).is('#lower-case-link')&&!$(e.target).is('#upper-case-link')&&!$(e.target).is('#title-case-link')&&!$(e.target).is('#sentence-case-link')&&!$(e.target).is('#text-to-speech-btn')&&!$(e.target).parent().is('#text-to-speech-btn')&&!$(e.target).is('#r-play-link')&&!$(e.target).parent().is('#r-play-link')&&!$(e.target).is('#r-pause-link')&&!$(e.target).parent().is('#r-pause-link')&&!$(e.target).is('#r-stop-link')&&!$(e.target).parent().is('#r-stop-link')&&!$(e.target).is('#speech-btn')&&!$(e.target).parent().is('#speech-btn')&&!$(e.target).parent().parent().is('#thesaurus_synonyms')&&!$(e.target).parent().is('#thesaurus_synonyms')&&!$(e.target).is('#kwd-accordion a')&&!$(e.target).is('#kwd-accordion a span')){if($('#box-readonly').css('display')=='none'){$this.keywordDensity();}
1289if($('#form').css('display')!='none'){editor.node_for_box.setSelectionRange(cursorPosition,cursorPosition);}}});$('#box:not(.processed)').TextAreaResizer({onResize:function(e,height){autosize.destroy($this.box);$this.box.css('min-height','0');savedObject.boxHeight={'box_height':height,'boxAutoSize':false};$this.changeOption(savedObject);}});if(this.optionsObject.boxHeight['boxAutoSize']){this.box.css('overflow','hidden');this.box.css('height','auto');this.box.height(this.box[0].scrollHeight);this.box.css('min-height','250px');}
1290else{this.box.css('overflow-y','auto');this.box.css('min-height','0');if(this.optionsObject.boxHeight['box_height']){this.box.height(this.optionsObject.boxHeight['box_height']);}
1291else{this.box.height(250);this.optionsObject.boxHeight['box_height']=this.box.height();}}
1292$('#collapseForRead.collapse, #collapseForSpeech.collapse, #collapseForReadingTime.collapse, #collapseForSpeakingTime.collapse').collapse('hide');$('[data-toggle="tooltip"]').tooltip();if('speechSynthesis'in window){window.speechSynthesis.onvoiceschanged=function(){$this.voices=speechSynthesis.getVoices();if(!$this.voices.length)return;var $select=$("#read_voices");$select.empty();var idx=parseInt($this.optionsObject.readVoices,10);if(isNaN(idx)||idx<0||idx>=$this.voices.length){idx=0;$this.optionsObject.readVoices=idx;}
1293for(var i=0;i<$this.voices.length;i++){var voiceName=escapeHTML($this.voices[i].name||("Voice "+i));var opt=$("<option>").val(i).text(voiceName).prop("selected",i===idx);$select.append(opt);}};}
1294else{$("#btn-text-to-speech-btn").parent().css({'opacity':'0.5','pointer-events':'none'});$("#btn-text-to-speech-btn").parent().parent().attr('title','Requires chrome browser');$("a[href='#collapseForRead'], label[for='btn-text-to-speech-btn']").css('pointer-events','none');$('#proof_read_requires').append('<br /><small style="color:red">Requires Chrome</small>');}
1295this.readTimer();this.changeDetails();this.changeButtonDetails();this.setLanguageForSpeech();if(user_id_for_goal){this.showActivities();}
1296$(document).ready(function(){var clicks=[];var keypresses=0;var i,target;editor.uploadFile();$('[data-toggle="popover"]').popover();clicks=[];$('body').on('click',function(e){i=0;target=$(e.target);while(target.attr('id')===undefined&&i<10){i++;target=target.parent();}
1297clicks.push(target.attr('id'));});keypresses=0;$('body').on('keypress',function(e){keypresses++;});jQuery.browser={};(function(){jQuery.browser.msie=false;jQuery.browser.version=0;if(navigator.userAgent.match(/MSIE ([0-9]+)\./)){jQuery.browser.msie=true;jQuery.browser.version=RegExp.$1;}})();$this.box.on('paste',function(e){e.preventDefault();var evt=e.originalEvent||e;var clip=(evt.clipboardData||window.clipboardData);var text=clip?(clip.getData('text/plain')||''):'';text=String(text).replace(/\r\n?/g,'\n');editor.insertTextAtSelection(text);$this.wordCountInternational();$this.keywordDensity();if(window.location.href==abs_path){localStorage.setItem('text',$this.box.val());}});$("button").not('#revisions-btn, #options-btn, #paste-btn, button[data-dismiss=modal]').click(function(e){if($this.lastFocus){setTimeout(function(){$this.lastFocus.focus();$this.wordCountInternational();$this.keywordDensity();},10);}
1298return(true);});$this.body.mouseup(function(e){setTimeout(function(){$this.thesaurusEnableOrDisable();$this.wordCountInternational();if(!$(e.target).is('#kwd-accordion a')&&!$(e.target).is('#kwd-accordion a span')){if($('#box-readonly').css('display')=='none'){$this.keywordDensity();}}},0);}).keyup(function(){$this.thesaurusEnableOrDisable();});$this.box.blur(function(){$this.lastFocus=this;});var blog_entry_alert=$('#blog_entry_alert');blog_entry_alert.bind('closed.bs.alert',function(){$.cookie('blog_entry','hide',{expires:7});});if($.cookie('blog_entry')!='hide'){blog_entry_alert.show();}
1299$('html').on('mouseup','grammarly-card',function(){setTimeout(function(){$this.wordCountInternational();$this.keywordDensity();},100);});});$(window).resize(function(){var fullText=$this.box.val();var isActive=(document.activeElement===$this.node_for_box);var selStart=$this.node_for_box.selectionStart;var selEnd=$this.node_for_box.selectionEnd;var hasNativeSelection=isActive&&typeof selStart==='number'&&typeof selEnd==='number'&&selEnd>selStart;var selected_text=hasNativeSelection?fullText.substring(selStart,selEnd):'';if(hasNativeSelection){$('#for_counting_lines').val(selected_text);if($this.optionsObject.details['lines_count'])$this.countLines(selected_text,true);if($this.optionsObject.details['words_manuscript'])$this.countWordsManuscript(selected_text,true);$this.displayTextBoxes(true);}else{$('#for_counting_lines').val(fullText);
1299if($this.optionsObject.details['lines_count'])$this.countLines(fullText,false);if($this.optionsObject.details['words_manuscript'])$this.countWordsManuscript(fullText,false);$this.displayTextBoxes(false);}});}
1300if(localStorage.getItem('addingStopWords')){this.addingStopWords=JSON.parse(localStorage.getItem('addingStopWords'));var count=0;for(var key in this.addingStopWords){$.wordStats.stopWords[key]=true;count++;}
1301$('#count_of_adding_words').text(count);if(count===0){$('#reset_ignored_words').attr('disabled','disabled');}}
1302else{$('#count_of_adding_words').text('0');$('#reset_ignored_words').attr('disabled','disabled');}
1303if(typeof BindSubmit=='function')BindSubmit();};if(!String.prototype.replaceAll){String.prototype.replaceAll=function(search,replacement){if(search instanceof RegExp)return this.replace(search,replacement);return this.split(String(search)).join(String(replacement));};}
1304Editor.prototype.uploadFile=function(){$('#file-uploader').uploadFile({url:'site/upload-file',dragDrop:false,fileName:"uploading_file",multiple:false,allowedTypes:"txt,pdf,odt,doc,docx",onSelect:function(files){$('.ajax-file-upload-container').empty();},onSuccess:function(files,data,xhr){if(typeof data=='string'){data=JSON.parse(data);}
1305if(data.success){editor.fileContent.content=data.fileContent;editor.fileContent.error=false;}
1306else{editor.fileContent.content=false;editor.fileContent.error=data.error;}
1307editor.setFileContent();}});};Editor.prototype.setFileContent=function(){$('#fill_content').attr('disabled','disabled');if(this.fileContent.error){$(".error_for_uploading_file").html('<div class="alert alert-warning" style="text-align: left">
1307'+'<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>'+' <strong>Warning!</strong> '+escapeHTML(this.fileContent.error)+'</div>');$(".error_for_uploading_file").slideDown();setTimeout(function(){$(".error_for_uploading_file").slideUp();},6000);}else{$('#upload-file-modal').modal('hide');var safeContent=this.fileContent.content||'';if('WebkitAppearance'in document.documentElement.style){this.box.focus();document.execCommand('selectAll',false,null);if(typeof window.getSelection==='function'){document.execCommand('insertText',false,safeContent);}else{this.insertTextAtSelection(safeContent);}}else{this.box.val(safeContent);}}};Editor.prototype.downloadText=function(ev,option){ev=ev||window.event;ev.preventDefault();var textToWrite='';if(option==='txt'||option==='doc'){textToWrite=this.node_for_box.value;textToWrite=textToWrite.replace(/~~~/gi,'').replace(/\n/g,"\r\n");var textFileAsBlob=new Blob([textToWrite],{type:'text/plain'});var fileNameToSaveAs="myWrittenText."+option;var downloadLink=document.createElement("a");downloadLink.download=fileNameToSaveAs;downloadLink.innerHTML="My Hidden Link";window.URL=window.URL||window.webkitURL;downloadLink.href=window.URL.createObjectURL(textFileAsBlob);downloadLink.onclick=this.destroyClickedElement;downloadLink.style.display="none";document.body.appendChild(downloadLink);downloadLink.click();}
1308else if(option==='pdf'){textToWrite=editor.box.val().replace(/~~~/gi,'');var doc=new jsPDF('p','in','letter'),size=14,font=['Helvetica',''],lines,margin=0.5,verticalOffset=margin;doc.setDrawColor(255,255,255).setLineWidth(1/72).line(margin,margin,margin,11-margin).line(8.5-margin,margin,8.5-margin,11-margin);lines=doc.setFont(font[0],font[1]).setFontSize(size).splitTextToSize(textToWrite,7.5);doc.text(0.5,verticalOffset+size/72,lines);doc.save('myWrittenText.pdf');}};Editor.prototype.destroyClickedElement=function(event){document.body.removeChild(event.target);};Editor.prototype.setRecordInputs=function(){$('#characters_record_input').val(this.count['character_count']);$('#words_record_input').val(this.count['word_count']);$('#notes').val('');};Editor.prototype.showExistingRecords=function(){var $wrap=$('#existing_records');if(!this._recordsDelegated){this._recordsDelegated=true;$wrap.on('click','.btn-delete-record',function(){var id=$(this).data('id');editor.deleteRecord(id);});$wrap.on('click','.btn-toggle-record',function(){var id=$(this).data('id');$('#record_slide_toggle_'+id).slideToggle();});$wrap.on('click','.btn-save-record',function(){var id=$(this).data('id');editor.editRecord(id);});}
1309$.ajax({type:"POST",url:"site/get-records",data:{date_format:editor.optionsObject.dateFormat,time_format:editor.optionsObject.timeFormat},success:function(data){$wrap.empty();if(data&&data.success===true&&Array.isArray(data.user_records)&&data.user_records.length){data.user_records.forEach(function(record,index){var id=record.id;var wordsFmt=editor.commaSeparateNumber([record.words])[0];var charsFmt=editor.commaSeparateNumber([record.characters])[0];var dateText=editor.translateDate(record.updated_at||'');var $card=$('<div/>',{'class':'col-xs-12 user_record records_for_logged_in_user',id:'record_'+id});var $left=$('<div/>',{'class':'col-xs-7 col-sm-8',style:'padding:0'});$left.append($('<div/>',{'class':'col-xs-2 col-sm-1',style:'padding: 5px 5px 0 5px; font-weight: bold'}).text((index+1)+'.')).append($('<div/>',{'class':'col-xs-9 col-sm-10',style:'padding: 5px 0 0 0; font-style: italic; font-weight: bold'}).text(dateText)).append($('<div/>',{'class':'col-xs-12',style:'padding:0;'}).append($('<div/>',{'class':'col-xs-2 col-sm-1',style:'padding: 5px 5px 0 5px;'})).append($('<div/>',{'class':'col-xs-9 col-sm-10',style:'padding:0'}).text(wordsFmt+' '+editor.selectedLanguage.words+', '+
1310charsFmt+' '+editor.selectedLanguage.characters+' ')));var $right=$('<div/>',{'class':'col-xs-5 col-sm-4',style:'margin-top: 9px; padding: 0'});$right.append($('<button/>',{type:'button','class':'btn btn-danger btn-xs btn-delete-record','data-id':id,style:'float:right;margin-right:10px;'}).text(editor.selectedLanguage.delete)).append($('<button/>',{type:'button','class':'btn btn-info btn-xs btn-toggle-record','data-id':id,style:'float:right; margin-right:7%;'}).text(editor.selectedLanguage.edit));$card.append($left,$right);var $slide=$('<div/>',{'class':'col-xs-12',id:'record_slide_toggle_'+id,style:'margin: 10px 0; display: none;'});var $well=$('<div/>',{'class':'col-xs-12 well'});
1310var $wordsCol=$('<div/>',{'class':'col-xs-5'}).append($('<label/>',{for:'words_'+id}).text(editor.selectedLanguage.words_label)).append($('<input/>',{id:'words_'+id,type:'number',min:'0','class':'form-control input-sm',value:record.words}));var $charsCol=$('<div/>',{'class':'col-xs-5'}).append($('<label/>',{for:'characters_'+id}).text(editor.selectedLanguage.characters_label)).append($('<input/>',{id:'characters_'+id,type:'number',min:'0','class':'form-control input-sm',value:record.characters}));var $spacer=$('<div/>',{'class':'col-xs-12',style:'margin-bottom: 5px'});var $notesCol=$('<div/>',{'class':'col-xs-10'}).append($('<label/>',{for:'notes_'+id}).text(editor.selectedLanguage.notes)).append($('<input/>',{id:'notes_'+id,type:'text',maxlength:'255','class':'form-control input-sm',value:record.notes||''}));var $saveCol=$('<div/>',{'class':'col-xs-2'}).append($('<button/>',{'class':'btn btn-success btn-save-record','data-id':id,style:'position: absolute; top: -6px;'}).text(editor.selectedLanguage.save_modal_btn));$well.append($wordsCol,$charsCol,$spacer,$notesCol,$saveCol);$slide.append($well);$wrap.append($card,$slide);});}else if(data&&data.success==='empty'){$wrap.append($('<div/>',{'class':'col-md-12 user_goal',style:'text-align: center;'}).text(editor.selectedLanguage.above_you_can_save_your_first_record));}}});};Editor.prototype.saveRecord=function(){$.ajax({type:"POST",url:"site/save-record",data:{word_count:$('#words_record_input').val(),characters_count:$('#characters_record_input').val(),notes:$('#notes').val()},success:function(data){var error_box=$(".error_for_save_word_count");if(data){editor.showExistingRecords();error_box.html('<div class="alert alert-success" style="text-align: center">'+'<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>'+' <strong>'+t('success')+'</strong> '+t('your_document_was_saved_successfully')+'</div>');error_box.slideDown();setTimeout(function(){$(".error_for_save_word_count").slideUp();},6000);editor.showActivities();editor.setRecordInputs();}
1311else{error_box.html('<div class="alert alert-warning" style="text-align: center">'+'<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>'+' <strong>'+t('warning')+'</strong> '+t('an_error_occurred_during_saving_your_record')+'</div>');error_box.slideDown();setTimeout(function(){$(".error_for_save_word_count").slideUp();},6000);}}});};Editor.prototype.editRecord=function(id){$.ajax({type:"POST",url:"site/edit-record",data:{id:id,words_count:$('#words_'+id).val(),characters_count:$('#characters_'+id).val(),notes:$('#notes_'+id).val()},success:function(data){var error_box=$(".error_for_save_word_count");if(data){editor.showExistingRecords();error_box.html('<div class="alert alert-success" style="text-align: center">'+'<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>'+' <strong>'+t('success')+'</strong> '+t('your_record_was_edited_successfully')+'</div>');error_box.slideDown();setTimeout(function(){$(".error_for_save_word_count").slideUp();},6000);$('#record_slide_toggle_'+id).slideUp();editor.showActivities();}
1312else{error_box.html('<div class="alert alert-warning" style="text-align: center">'+'<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>'+' <strong>'+t('warning')+'</strong> '+t('an_error_occurred_during_editing_your_record')+'</div>');error_box.slideDown();setTimeout(function(){$(".error_for_save_word_count").slideUp();},6000);}}});};Editor.prototype.deleteRecord=function(id){var dataObject={'id':id};$.ajax({type:"POST",url:"site/delete-record",data:dataObject,success:function(data){var error_box=$(".error_for_save_word_count");if(data.success){$('#record_'+id).fadeOut(500);setTimeout(function(){editor.showExistingRecords();if($('#existing_records').children().length==0){$('#existing_records').append('<div class="col-md-12 user_record" id="" style="text-align: center;">'+
1313editor.selectedLanguage.above_you_can_save_your_first_record+'</div>');}},450);error_box.html('<div class="alert alert-success">'
1314+'<a href="#" class="close" data-dismiss="alert" aria-label="close" title="close">&times;</a>'
1315+'<strong>'+t('success')+'</strong> '+t('your_record_was_deleted_successfully')
1316+'</div>');error_box.slideDown();setTimeout(function(){$(".error_for_save_word_count").slideUp();},6000);editor.showActivities();}
1317else{error_box.html('<div  class="alert alert-warning">'+'<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>'+'<strong>'+t('warning')+' </strong>'+t(data.message)+'</div>');error_box.slideDown();setTimeout(function(){$(".error_for_save_word_count").slideUp();},6000);}}});};Editor.prototype.translateDate=function(date){var translatingDate=date;if(translatingDate.indexOf("24-hour with a leading zero")>-1){translatingDate=translatingDate.replace('24-hour with a leading zero',editor.selectedLanguage['24_hour_with_a_leading_zero']);}
1318else if(translatingDate.indexOf("with a leading zero")>-1){translatingDate=translatingDate.replace('with a leading zero',editor.selectedLanguage.with_a_leading_zero);}
1319else if(translatingDate.indexOf("24 hour")>-1){translatingDate=translatingDate.replace('24 hour',editor.selectedLanguage['24_hour']);}
1320if(translatingDate.indexOf("Monday")>-1){translatingDate=translatingDate.replace('Monday',editor.selectedLanguage.Monday);}
1321else if(translatingDate.indexOf("Mon")>-1){translatingDate=translatingDate.replace('Mon',editor.selectedLanguage.Mon);}
1322else if(translatingDate.indexOf("Tuesday")>-1){translatingDate=translatingDate.replace('Tuesday',editor.selectedLanguage.Tuesday);}
1323else if(translatingDate.indexOf("Tue")>-1){translatingDate=translatingDate.replace('Tue',editor.selectedLanguage.Tue);}
1324else if(translatingDate.indexOf("Wednesday")>-1){translatingDate=translatingDate.replace('Wednesday',editor.selectedLanguage.Wednesday);}
1325else if(translatingDate.indexOf("Wed")>-1){translatingDate=translatingDate.replace('Wed',editor.selectedLanguage.Wed);}
1326else if(translatingDate.indexOf("Thursday")>-1){translatingDate=translatingDate.replace('Thursday',editor.selectedLanguage.Thursday);}
1327else if(translatingDate.indexOf("Thu")>-1){translatingDate=translatingDate.replace('Thu',editor.selectedLanguage.Thu);}
1328else if(translatingDate.indexOf("Friday")>-1){translatingDate=translatingDate.replace('Friday',editor.selectedLanguage.Friday);}
1329else if(translatingDate.indexOf("Fri")>-1){translatingDate=translatingDate.replace('Fri',editor.selectedLanguage.Fri);}
1330else if(translatingDate.indexOf("Saturday")>-1){translatingDate=translatingDate.replace('Saturday',editor.selectedLanguage.Saturday);}
1331else if(translatingDate.indexOf("Sat")>-1){translatingDate=translatingDate.replace('Sat',editor.selectedLanguage.Sat);}
1332else if(translatingDate.indexOf("Sunday")>-1){translatingDate=translatingDate.replace('Sunday',editor.selectedLanguage.Sunday);}
1333else if(translatingDate.indexOf("Sun")>-1){translatingDate=translatingDate.replace('Sun',editor.selectedLanguage.Sun);}
1334if(translatingDate.indexOf("th")>-1){translatingDate=translatingDate.replace('th',editor.selectedLanguage.th);}
1335if(translatingDate.indexOf("of ")>-1){translatingDate=translatingDate.replace('of ',editor.selectedLanguage.of);}
1336if(translatingDate.indexOf("January")>-1){translatingDate=translatingDate.replace('January',editor.selectedLanguage.January);}
1337else if(translatingDate.indexOf("Jan")>-1){translatingDate=translatingDate.replace('Jan',editor.selectedLanguage.Jan);}
1338else if(translatingDate.indexOf("February")>-1){translatingDate=translatingDate.replace('February',editor.selectedLanguage.February);}
1339else if(translatingDate.indexOf("Feb")>-1){translatingDate=translatingDate.replace('Feb',editor.selectedLanguage.Feb);}
1340else if(translatingDate.indexOf("March")>-1){translatingDate=translatingDate.replace('March',editor.selectedLanguage.March);}
1341else if(translatingDate.indexOf("Mar")>-1){translatingDate=translatingDate.replace('Mar',editor.selectedLanguage.Mar);}
1342else if(translatingDate.indexOf("April")>-1){translatingDate=translatingDate.replace('April',editor.selectedLanguage.April);}
1343else if(translatingDate.indexOf("Apr")>-1){translatingDate=translatingDate.replace('Apr',editor.selectedLanguage.Apr);}
1344else if(translatingDate.indexOf("May")>-1){translatingDate=translatingDate.replace('May',editor.selectedLanguage.May);}
1345else if(translatingDate.indexOf("June")>-1){translatingDate=translatingDate.replace('June',editor.selectedLanguage.June);}
1346else if(translatingDate.indexOf("Jun")>-1){translatingDate=translatingDate.replace('Jun',editor.selectedLanguage.Jun);}
1347else if(translatingDate.indexOf("July")>-1){translatingDate=translatingDate.replace('July',editor.selectedLanguage.July);}
1348else if(translatingDate.indexOf("Jul")>-1){translatingDate=translatingDate.replace('Jul',editor.selectedLanguage.Jul);}
1349else if(translatingDate.indexOf("August")>-1){translatingDate=translatingDate.replace('August',editor.selectedLanguage.August);}
1350else if(translatingDate.indexOf("Aug")>-1){translatingDate=translatingDate.replace('Aug',editor.selectedLanguage.Aug);}
1351else if(translatingDate.indexOf("September")>-1){translatingDate=translatingDate.replace('September',editor.selectedLanguage.September);}
1352else if(translatingDate.indexOf("Sep")>-1){translatingDate=translatingDate.replace('Sep',editor.selectedLanguage.Sep);}
1353else if(translatingDate.indexOf("October")>-1){translatingDate=translatingDate.replace('October',editor.selectedLanguage.October);}
1354else if(translatingDate.indexOf("Oct")>-1){translatingDate=translatingDate.replace('Oct',editor.selectedLanguage.Oct);}
1355else if(translatingDate.indexOf("November")>-1){translatingDate=translatingDate.replace('November',editor.selectedLanguage.November);}
1356else if(translatingDate.indexOf("Nov")>-1){translatingDate=translatingDate.replace('Nov',editor.selectedLanguage.Nov);}
1357else if(translatingDate.indexOf("December")>-1){translatingDate=translatingDate.replace('December',editor.selectedLanguage.December);}
1358else if(translatingDate.indexOf("Dec")>-1){translatingDate=translatingDate.replace('Dec',editor.selectedLanguage.Dec);}
1359return translatingDate;};Editor.prototype.showActivities=function(){var $list=$('#for-activity-results');var $empty=$('#for-empty-result');$.ajax({type:"POST",url:"site/show-activities",data:{activityAmount:editor.optionsObject.activityAmount,activityType:editor.optionsObject.activityType,date_format:editor.optionsObject.dateFormat},success:function(data){$list.empty();var ok=data&&data.success&&Array.isArray(data.activitiesArr)&&data.activitiesArr.length>0;if(!ok){$empty.show();return;}
1360$empty.hide();data.activitiesArr.forEach(function(act){var rawDate=(act&&act.date)||'';var dateLabel=(rawDate==='Today'||rawDate==='Yesterday')?(editor.selectedLanguage[rawDate]||rawDate):editor.translateDate(rawDate);var totalWords=(act&&typeof act.total_words!=='undefined')?act.total_words:0;var totalChars=(act&&typeof act.total_characters!=='undefined')?act.total_characters:0;var $li=$('<li/>',{'class':'list-group-item'});var $p1=$('<p/>',{style:'margin: 0'}).append($('<strong/>').text(dateLabel));
1360var $p2=$('<p/>',{style:'margin: 0'});var $iWords=$('<i/>',{'data-tr-detail':'Words'}).text(editor.selectedLanguage["Words"]);var $iChars=$('<i/>',{'data-tr-detail':'Characters'}).text(editor.selectedLanguage["Characters"]);$p2.append($iWords).append(document.createTextNode(': '+totalWords+', ')).append($iChars).append(document.createTextNode(': '+totalChars));$li.append($p1,$p2);$list.append($li);});},error:function(){$list.empty();$empty.show();}});};Editor.prototype.showExistingDocuments=function(){var $wrap=$('#existing_documents');$wrap.empty();$.ajax({type:"POST",url:"site/get-documents",data:{date_format:editor.optionsObject.dateFormat,time_format:editor.optionsObject.timeFormat},success:function(data){$wrap.empty();if(data&&data.success===true&&Array.isArray(data.user_documents)&&data.user_documents.length){data.user_documents.forEach(function(doc,index){var id=doc.id;var dateText=editor.translateDate(doc.updated_at||"");var docUrl=doc.url?(abs_path+doc.url):"";var collapseId='collapseForDocument'+id;var $row=$('<div/>',{'class':'col-xs-12 user_record',id:'document_'+id});var $left=$('<div/>',{'class':'col-xs-5',style:'padding:0'}).append($('<div/>',{'class':'col-xs-2 col-sm-1',style:'padding: 5px 5px 0 5px; font-weight: bold'}).text((index+1)+'.')).append($('<div/>',{'class':'col-xs-9 col-sm-10',style:'padding: 5px 0 0 0; font-style: italic; font-weight: bold'}).text(dateText)).append($('<div/>',{'class':'col-xs-12',style:'padding:0'}).append($('<div/>',{'class':'col-xs-2 col-sm-1',style:'padding: 5px 5px 0 5px;'})).append($('<div/>',{'class':'col-xs-9 col-sm-10',style:'padding:0'}).text(doc.document_name||'')));var $right=$('<div/>',{'class':'col-xs-7',style:'margin-top: 9px; padding: 0'});var $linkBtn=$('<button/>',{type:'button','class':'btn btn-info btn-xs',style:'float:right;margin-right:1%;','data-toggle':'collapse','aria-expanded':'false','aria-controls':collapseId,href:'#'+collapseId}).text(editor.selectedLanguage.get_public_link).on('click',function(){editor.getDocumentUrl(id);$('#copy_link_for_document'+id).text('('+editor.selectedLanguage.copy+')');});var $delBtn=$('<button/>',{type:'button','class':'btn btn-danger btn-xs',style:'float:right;margin-right:1%;'}).text(editor.selectedLanguage.delete).on('click',function(){editor.deleteDocument(id);});var $loadBtn=$('<button/>',{type:'button','class':'btn btn-success btn-xs',style:'float:right;margin-right:1%;'}).text(editor.selectedLanguage.load).on('click',function(){editor.loadDocument(id);});$right.append($linkBtn,$delBtn,$loadBtn);var $collapse=$('<div/>',{'class':'col-xs-12 collapse collapsesForDocuments',id:collapseId}).append($('<div/>',{'class':'col-sm-6 col-xs-9',style:'padding:0'}).append($('<input/>',{type:'text','class':'form-control input-sm',id:'public_url_of_document'+id,readonly:true,value:docUrl}))).append($('<div/>',{'class':'col-sm-6 col-xs-3',style:'padding-top: 4px; padding-left: 5px;'}).append($('<a/>',{href:'#',id:'copy_link_for_document'+id}).text('('+editor.selectedLanguage.copy+')').on('click',function(e){editor.copyDocumentUrl(e,this,id);})));$row.append($left,$right,$collapse);$wrap.append($row);});}else if(data&&data.success==='empty'){$wrap.append($('<div/>',{'class':'col-md-12 user_goal',style:'text-align: center;'}).text(editor.selectedLanguage.above_you_can_save_your_first_document));}}});};Editor.prototype.getDocumentUrl=function(id){if($('#public_url_of_document'+id).val()==''){$.ajax({type:"POST",url:"site/get-document-url",data:{'id':id},success:function(data){if(data.success){$('#public_url_of_document'+id).val(abs_path+data.url);}}});}};Editor.prototype.copyDocumentUrl=async function(ev,obj,id){ev.preventDefault();const el=document.getElementById('public_url_of_document'+id);if(!el)return;try{await navigator.clipboard.writeText(el.value||'');}catch{el.focus();document.execCommand('selectAll');document.execCommand('copy');}
1361$(obj).text('('+t('copied')+')');};Editor.prototype.saveDocument=function(){var error_box=$(".error_for_save_document");var error_message='';if(!editor.box.val()){error_message=editor.selectedLanguage.documents_content_cant_be_blank;}
1362else if(!$('#document_name').val()){error_message=editor.selectedLanguage.documents_name_cant_be_blank;}
1363if(error_message){error_box.html('<div class="alert alert-warning" style="text-align: center">
1363'+'<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>'+' <strong>'+t('warning')+'</strong> '+escapeHTML(error_message)+'</div>');error_box.slideDown();setTimeout(function(){error_box.slideUp();},6000);return;}
1364$.ajax({type:"POST",url:"site/save-document",data:{document_name:$('#document_name').val(),document_content:editor.box.val()},success:function(data){if(data.success){editor.showExistingDocuments();$('#document_name').val('');error_box.html('<div class="alert alert-success" style="text-align: center">'+'<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>'+' <strong>'+t('success')+'</strong> '+t('your_document_was_saved_successfully')+'</div>');error_box.slideDown();setTimeout(function(){error_box.slideUp();},6000);editor.showActivities();editor.setRecordInputs();}
1365else{error_box.html('<div class="alert alert-warning" style="text-align: center">'+'<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>'+' <strong>'+t('warning')+'</strong> '+t(data.type)+'</div>');error_box.slideDown();setTimeout(function(){error_box.slideUp();},6000);}}});};Editor.prototype.deleteDocument=function(id){var dataObject={'id':id};$.ajax({type:"POST",url:"site/delete-document",data:dataObject,success:function(data){var error_box=$(".error_for_save_document");if(data.success){$('#document_'+id).fadeOut(500);setTimeout(function(){editor.showExistingDocuments();if($('#existing_documents').children().length==0){$('#existing_documents').append('<div class="col-md-12 user_record" id="" style="text-align: center;">'+
1366editor.selectedLanguage.above_you_can_save_your_first_document+'</div>');}},450);error_box.html('<div class="alert alert-success">'
1367+'<a href="#" class="close" data-dismiss="alert" aria-label="close" title="close">&times;</a>'
1368+'<strong>'+t('success')+'</strong> '+t('your_document_was_deleted_successfully')
1369+'</div>');error_box.slideDown();setTimeout(function(){error_box.slideUp();},6000);editor.showActivities();}
1370else{error_box.html('<div  class="alert alert-warning">'+'<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>'+'<strong>'+t('warning')+' </strong>'+t(data.message)+'</div>');error_box.slideDown();setTimeout(function(){error_box.slideUp();},6000);}}});};Editor.prototype.loadDocument=function(id){var dataObject={'id':id};$.ajax({type:"POST",url:"site/load-document",data:dataObject,success:function(data){var error_box=$(".error_for_save_document");var success_box=$('.message_output');if(data.success){editor.box.val(data.document_content);$('#save-modal').modal('hide');}
1371else{error_box.html('<div  class="alert alert-warning">'+'<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>'+'<strong>'+t('warning')+' </strong>'+t(data.message)+'</div>');error_box.slideDown();setTimeout(function(){error_box.slideUp();},6000);}}});};Editor.prototype.chr=function(codePt){if(codePt>0xFFFF){codePt-=0x10000;return String.fromCharCode(0xD800+(codePt>>10),0xDC00+(codePt&0x3FF));}
1372return String.fromCharCode(codePt);};Editor.prototype.cleanText=function(){var text=this.box.val();if($('#chk_email_fix').prop('checked')){text=text.replace(/\n{3,}/gi,"\n\n");text=text.replace(/ {2,}/gi," ");text=text.replace(/\t/gi," ");text=text.replace(/\n /gi," ").replace(/\n,/gi,",").replace(/\n\./gi,".").replace(/\n!/gi,"!").replace(/\n\?/gi,"?").replace(/\n:/gi,":").replace(/\n;/gi,";");}
1373if($('#chk_mwd_fix').prop('checked')){text=text.replace(/\xe2\x80\x98/gi,"'").replace(/\xe2\x80\x99/gi,"'").replace(/\xe2\x80\x9c/gi,'"').replace(/\xe2\x80\x9d/gi,'"').replace(/\xe2\x80\x93/gi,'-').replace(/\xe2\x80\x94/gi,'--').replace(/\xe2\x80\xa6/gi,'...');text=text.replaceAll(this.chr(145),"'").replaceAll(this.chr(146),"'").replaceAll(this.chr(147),'"').replaceAll(this.chr(148),'"').replaceAll(this.chr(150),'-').replaceAll(this.chr(151),'--').replaceAll(this.chr(133),'...');}
1374if($('#chk_multiple_new_lines_fix').prop('checked')){text=text.replace(/\n{3,}/gi,"\n\n");}
1375setTimeout(function(){editor.box.focus();document.execCommand('selectAll',false,null);editor.insertTextAtSelection(text);},500);};Editor.prototype.details=function(){var no_switch_details_count=0;$.each(this.optionsObject['details'],function(index,value){$("#chk_"+index).bootstrapSwitch('state',value);if(value){$("#"+index).closest("li").show();$("#"+index+"_small").closest("li").show();}else{no_switch_details_count++;$("#"+index).closest("li").hide();$("#"+index+"_small").closest("li").hide();}});$('#no_switch_details').text(no_switch_details_count);};Editor.prototype.buttons=function(){var no_switch_buttons_count=0;$.each(this.optionsObject['buttons'],function(index,value){$("#btn-"+index).bootstrapSwitch('state',value);if(value){$("#"+index).show();switch(index){case"goal-btn":if(editor.optionsObject.buttons['goalViewBox']){$("#goalViewBox").show();$('#'+index).addClass('active');}
1376else{$("#goalViewBox").hide();$('#'+index).removeClass('active');}
1377break;case"speed-btn":if(editor.optionsObject.buttons['copy']){$("#copy").show();$('#'+index).addClass('active');}
1378break;}
1379if(index=='case-btn'){}}else{if(index!='goalViewBox'&&index!='copy')
1380no_switch_buttons_count++;$("#"+index).hide();if(index=="goal-btn"){$("#goalViewBox").addClass('hidden');$('#'+index).removeClass('active');}}});$('#no_switch_buttons').text(no_switch_buttons_count);};Editor.prototype.version=function(){var isBasic=(this.optionsObject['version']=='basic');$('body').toggleClass('wc-basic-mode',isBasic);if(this.optionsObject['version']=='basic'){$('#version-btn-label').text(editor.selectedLanguage['go_advanced']);$('#version-btn-label').attr('data-tr-detail','go_advanced');$('#version-btn').data('type','advanced');$('#version-btn').addClass('advanced');$('#details_container').hide();$('#editor_container').addClass('col-md-12 full_width').removeClass('col-md-9');$('#version-btn').attr('onclick','editor.changeOption(editor.advancedVersionOptions); editor.setLanguageForSpeech(); editor.wordCountInternational(); editor.keywordDensity();');}
1381else if(this.optionsObject['version']=='advanced'){$('#version-btn-label').text(editor.selectedLanguage['go_basic']);$('#version-btn-label').attr('data-tr-detail','go_basic');$('#version-btn').data('type','basic');$('#version-btn').removeClass('advanced');$('#details_container').show();$('#editor_container').addClass('col-md-9').removeClass('col-md-12 full_width');$('#version-btn').attr('onclick','editor.changeOption(editor.basicVersionOptions); editor.setLanguageForSpeech();');if(user_id_for_goal!==undefined){$.ajax({url:'site/set-goal',type:"POST",data:{'set_goal':true},success:function(data){if(data.success=='true'){goal.set([data.goal_count,data.goal_type,data.goal_length_type]);}
1382else if(data.success=='no_set_goal'){}}});}}};Editor.prototype.detailsContainer=function(){if(this.optionsObject.detailsContainer){$('.hide_button').attr('data-tr-detail','hide');$('.hide_button').text(editor.selectedLanguage['hide']);$('.fa-caret-right').show();$('.fa-caret-left').hide();$('.hide_button').attr('title',editor.selectedLanguage['hide_details_panel']);if(!this.optionsObject.keywordDensityPanel&&!this.optionsObject.detailsPanel&&!this.optionsObject.activityPanel){var changeOb
1382j={keywordDensityPanel:true,detailsPanel:true,activityPanel:true};this.changeOption(changeObj);}
1383$('#accordion').fadeIn(250);$('#editor_container').removeClass('clicked');$('#details_container').removeClass('clicked');}
1384else{$('.hide_button').attr('data-tr-detail','show');$('.hide_button').text(editor.selectedLanguage['show']);$('.fa-caret-right').hide();$('.fa-caret-left').show();$('.hide_button').attr('title',editor.selectedLanguage['show_details_panel']);$('#accordion').fadeOut(150);$('#details_container').addClass('clicked');$('#editor_container').addClass('clicked');}};Editor.prototype.detailsPanel=function(){if(this.optionsObject['detailsPanel']){$("#show-details").prop("checked",true);$('#details .bootstrap-switch, #details a').css({'opacity':'1','pointer-events':'all'});$('#details_panel, #details_panel1').show();}
1385else{$("#show-details").prop("checked",false);$('#details .bootstrap-switch, #details a').css({'opacity':'0.5','pointer-events':'none'});$('#details_panel, #details_panel1').hide();}};Editor.prototype.keywordDensityPanel=function(){if(this.optionsObject['keywordDensityPanel']){$("#show-keyword-density").prop("checked",true);$("#kwd-density").show();$('#keywordDensityAmount').removeAttr('disabled');$('#stopWordsCommon').removeAttr('disabled');$('#keywordDensityConsecutive').removeAttr('disabled');this.keywordDensity();}else{$("#show-keyword-density").prop("checked",false);$("#kwd-density").hide();$('#keywordDensityAmount').attr('disabled','disabled');$('#stopWordsCommon').attr('disabled','disabled');$('#keywordDensityConsecutive').attr('disabled','disabled');}};Editor.prototype.activityPanel=function(){if(this.optionsObject.activityPanel){$("#show-activity").prop("checked",true);$("#activities").show();$('#activityAmount').removeAttr('disabled');$('#activityType').removeAttr('disabled');this.keywordDensity();}else{$("#show-activity").prop("checked",false);$("#activities").hide();$('#activityAmount').attr('disabled','disabled');$('#activityType').attr('disabled','disabled');}};Editor.prototype.keywordDensityAccordion=function(){if(this.optionsObject.keywordDensityAccordion){$('#kwd-accordion').collapse('show');}
1386else{$('#kwd-accordion').collapse('hide');}};Editor.prototype.activityAccordion=function(){if(this.optionsObject.activityAccordion){$('#activities-accordion').collapse('show');}
1387else{$('#activities-accordion').collapse('hide');}};Editor.prototype.detailsPanelAccordion=function(){if(this.optionsObject.detailsPanelAccordion){$('#details-accordion').collapse('show');}
1388else{$('#details-accordion').collapse('hide');}};Editor.prototype.keywordDensityAmount=function(){$('#keywordDensityAmount').val(this.optionsObject['keywordDensityAmount']);this.keywordDensity();};Editor.prototype.activityAmount=function(){$('#activityAmount').val(this.optionsObject.activityAmount);this.keywordDensity();};Editor.prototype.activityType=function(){$('#activityType').val(this.optionsObject.activityType);this.keywordDensity();};Editor.prototype.keywordDensityConsecutive=function(){var keywordDensityConsecutive=this.optionsObject['keywordDensityConsecutive'];$('#keywordDensityConsecutive').val(keywordDensityConsecutive);$('.keyword_density_consecutive').removeClass('active_consecutive');if(keywordDensityConsecutive<=3){$('#consecutive-'+keywordDensityConsecutive+'-link').addClass('active_consecutive');}
1389this.keywordDensity();};Editor.prototype.keywordDensityWordsCommon=function(){if(this.optionsObject['keywordDensityWordsCommon']){$('#stopWordsCommon').prop('checked',true);}
1390else{$('#stopWordsCommon').prop('checked',false);}
1391this.keywordDensity();};Editor.prototype.readRate=function(){$('#read_rate').val(this.optionsObject['readRate']);};Editor.prototype.readPitch=function(){$('#read_pitch').val(this.optionsObject['readPitch']);};Editor.prototype.readVoices=function(){$('#read_voices').val(this.optionsObject['readVoices']);};Editor.prototype.selectLanguage=function(){$('#select_language').val(this.optionsObject['selectLanguage']);};Editor.prototype.selectDialect=function(){$('#select_dialect').val(this.optionsObject['selectDialect']);};Editor.prototype.wordsPerMinuteForReading=function(){$('#words_per_minut_reading').val(this.optionsObject['wordsPerMinuteForReading']);$('#reading_time_tooltip').attr('data-original-title',editor.selectedLanguage.based_on_an_average_reading_speed_of+this.optionsObject['wordsPerMinuteForReading']+editor.selectedLanguage.words_per_minute_for_reading).tooltip('fixTitle');var text=this.box.val();this.readingTime(text);$("#reading_time, #reading_time1").text(this.count['reading_time']);};Editor.prototype.wordsPerMinuteForSpeaking=function(){$('#words_per_minut_speaking').val(this.optionsObject['wordsPerMinuteForSpeaking']);$('#speaking_time_tooltip').attr('data-original-title',editor.selectedLanguage.based_on_an_average_speaking_speed_of+this.optionsObject['wordsPerMinuteForSpeaking']+editor.selectedLanguage.words_per_minute_for_speaking).tooltip('fixTitle');var text=this.box.val();this.speakingTime(text);$("#speaking_time, #speaking_time1").text(this.count['speaking_time']);};Editor.prototype.lettersPerMinuteForHandWriting=function(){$('#letters_per_minute').val(this.optionsObject['lettersPerMinuteForHandWriting']);$('#hand_writing_time_tooltip').attr('data-original-title',editor.selectedLanguage.based_on_an_average_hand_writing_speed_of+this.optionsObject['lettersPerMinuteForHandWriting']+editor.selectedLanguage.letters_per_minute).tooltip('fixTitle');var text=this.box.val();this.handWritingTime(text);$("#hand_writing_time, #hand_writing_time1").text(this.count['hand_writing_time']);};Editor.prototype.boxHeight=function(){if(this.optionsObject.boxHeight['boxAutoSize']){$('#autoResizeTextArea').prop('checked',true);this.box.css('overflow','hidden');this.box.css('height','auto');this.box.height(this.box[0].scrollHeight);this.box.css('min-height','250px');}
1392else{this.box.css('overflow-y','auto');
1392$('#autoResizeTextArea').prop('checked',false);this.box.css('min-height','0');if(this.optionsObject.boxHeight['box_height']){this.box.height(this.optionsObject.boxHeight['box_height']);}
1393else{this.box.height(250);this.optionsObject.boxHeight['box_height']=this.box.height();}}};Editor.prototype.theme=function(){this.setTheme(this.optionsObject.theme);};Editor.prototype.font=function(){this.setBoxFont(this.optionsObject.font);};Editor.prototype.dateFormat=function(){this.setDateFormat(this.optionsObject.dateFormat);};Editor.prototype.timeFormat=function(){this.setTimeFormat(this.optionsObject.timeFormat);};Editor.prototype.wcLanguage=function(){var wcLanguage=this.optionsObject.wcLanguage;$("#wc_language_dropdown option[value='"+wcLanguage+"']").attr('selected','selected');translate.setWcLanguage();};Editor.prototype.setEditorOptions=function(){this.details();this.buttons();this.version();this.detailsPanel();this.detailsPanelAccordion();this.keywordDensityPanel();this.keywordDensityAccordion();this.keywordDensityAmount();this.keywordDensityConsecutive();this.keywordDensityWordsCommon();this.activityPanel();this.activityAccordion();this.activityAmount();this.activityType();this.readRate();this.readPitch();this.readVoices();this.selectLanguage();this.selectDialect();this.wordsPerMinuteForReading();this.wordsPerMinuteForSpeaking();this.boxHeight();this.theme();this.font();this.dateFormat();this.timeFormat();this.wcLanguage();};Editor.prototype.changeOption=function(changed_object){var function_name,status;var $this=this;if(typeof changed_object==="object"){for(var key in changed_object){if(key in $this.optionsObject){function_name=key;if(typeof changed_object[key]==="object"){for(var key1 in changed_object[key]){if(key1 in $this.optionsObject[ke
1393y]){$this.optionsObject[key][key1]=changed_object[key][key1];}}}
1394else{$this.optionsObject[key]=changed_object[key];}}
1395if(typeof window.editor[function_name]==='function'){window.editor[function_name]();}}
1396$.cookie('optionsObject',JSON.stringify($this.optionsObject),{expires:365});}
1397else{alert('Parameter should be object');return false;}};Editor.prototype.printTextOfEditor=function(){var childWindow=window.open('','childWindow','location=yes, menubar=yes, toolbar=yes');var wdoc=childWindow.document;wdoc.open();wdoc.write('<html><head><meta charset="utf-8"></head><body></body></html>');wdoc.close();var pre=wdoc.createElement('pre');pre.style.whiteSpace='pre-wrap';pre.textContent=this.node_for_box.value;wdoc.body.appendChild(pre);childWindow.focus();childWindow.print();childWindow.close();};Editor.prototype.getTotalWeights=function(arr){var total=0;$.each(arr,function(){total+=this;});return total;};function _escapeRe(s){return String(s).replace(/[.*+?^${}()|[\]\\]/g,'\\$&');}
1398Editor.prototype.keywordDensity=function(){if(!$("#show-keyword-density").prop("checked"))return;var obj=$('#for_keyword_density');var wordsToShow=parseInt(this.optionsObject['keywordDensityAmount'],10)||10;var fullText=this.box.val();var isActive=(document.activeElement===this.node_for_box);var selStart=this.node_for_box.selectionStart;var selEnd=this.node_for_box.selectionEnd;var hasNativeSelection=isActive&&typeof selStart==='number'&&typeof selEnd==='number'&&selEnd>selStart;var selected_text=hasNativeSelection?fullText.substring(selStart,selEnd):'';obj.val(this.removeUncountablePartsFromText(hasNativeSelection?selected_text:fullText));var max=200;var text_without_space=obj.val().replace(/\s+/g,'');text_without_space=text_without_space.replace(/’/g,"'").replace(/“/g,'"').replace(/”/g,'"');var matches=text_without_space.match(/([^\x00-\x7F\u2013\u2014])+/gi);var latin_only=(matches===null);$.wordStats.latinOnly=latin_only;$.wordStats.useStopWords=this.optionsObject['keywordDensityWordsCommon'];$.wordStats.keywords=this.optionsObject.keywordDensityConsecutive;$.wordStats.computeTopWords(max,obj);var $list=$("#kwd-accordion-data");$list.empty();if(!$list.data('delegated')){$list.on('click','.js-ignore-word',function(e){editor.addWordStoTopWords(this,e);});$list.on('mouseenter','a.list-group-item',function(){$(this).find('.ignore_word').css('visibility','visible');});$list.on('mouseleave','a.list-group-item',function(){$(this).find('.ignore_word').css('visibility','hidden');});$list.data('delegated',true);}
1399var combinedWords=$.wordStats.topWords.slice(0);var combinedWeights=$.wordStats.topWeights.slice(0);var text=obj.val();var whiteListArr=$.wordStats.whiteList;for(var key in whiteListArr){if(!whiteListArr.hasOwnProperty(key))continue;if(text.indexOf(key)===-1)continue;var escaped=_escapeRe(key);var totalWeight=(text.match(new RegExp(escaped,'g'))||[]).length;for(var k1 in whiteListArr){if(!whiteListArr.hasOwnProperty(k1)||k1===key)continue;if(k1.indexOf(key)>-1){var subEscaped=_escapeRe(k1);totalWeight-=(text.match(new RegExp(subEscaped,'g'))||[]).length;}}
1400if(totalWeight>0){combinedWords.push(key);combinedWeights.push(totalWeight);}}
1401var totalWeights=this.getTotalWeights(combinedWeights);if(combinedWords.length>0){for(var i=0;i<combinedWords.length&&i<wordsToShow;i++){var percentage=(100*(combinedWeights[i]/(totalWeights||1))).toFixed(0);$list.append('<a class="list-group-item" href="#">'+'<span class="badge"> '+combinedWeights[i]+' ('+percentage+'%)</span>'+'<span class="word"></span>&nbsp;'+'<span class="glyphicon glyphicon-remove ignore_word js-ignore-word" '+'style="color:#E21414; font-size:11px; visibility:hidden; cursor:help" '+'title="Ignore this word"></span>'+'</a>');$list.children().last().find('.word').text(combinedWords[i]);}}else{$list.append('<li class="list-group-item"><p class="message_for_empty_panel">'+
1402editor.selectedLanguage.start_typing_your_document_to_get_a_list_of_most_used_keywords+'</p></li>');}
1403$.wordStats.clear();};Editor.prototype.addWordStoTopWords=function(obj,ev){ev.stopPropagation();ev.preventDefault();$('#reset_ignored_words').removeAttr('disabled');var word=$(obj).prev().text();$.wordStats.stopWords[word]=true;this.addingStopWords[word]=true;var count_of_adding_words=$('#count_of_adding_words');count_of_adding_words.text(Number(count_of_adding_words.text())+1);localStorage.setItem('addingStopWords',JSON.stringify(this.addingStopWords));this.keywordDensity();};
1403Editor.prototype.resetIgnoredWords=function(ev){ev.preventDefault();for(var key in this.addingStopWords){delete $.wordStats.stopWords[key];}
1404this.addingStopWords={};$('#count_of_adding_words').text(0);$('#reset_ignored_words').attr('disabled','disabled');this.keywordDensity();localStorage.setItem('addingStopWords',JSON.stringify(this.addingStopWords));};function isQuestionOrSuggestVisible(){return $('#gly_ques').is(':visible')||$('#suggest_gly').is(':visible');}
1405Editor.prototype.displayCount=function(flag){var wordOrWords,charOrChars;var text_content="";var numbers_with_commas_array=[];if(flag){numbers_with_commas_array['character_count']=this.count_for_selection['character_count'];numbers_with_commas_array['word_count']=this.count_for_selection['word_count'];numbers_with_commas_array=this.commaSeparateNumber(numbers_with_commas_array);}
1406else{numbers_with_commas_array['character_count']=this.count['character_count'];numbers_with_commas_array['word_count']=this.count['word_count'];numbers_with_commas_array=this.commaSeparateNumber(numbers_with_commas_array);}
1407if(numbers_with_commas_array['word_count']===1){wordOrWords=typeof editor.selectedLanguage.word==="undefined"?" word":" "+editor.selectedLanguage.word;}else{wordOrWords=typeof editor.selectedLanguage.words==="undefined"?" words":" "+editor.selectedLanguage.words;}
1408if(numbers_with_commas_array['character_count']===1){charOrChars=typeof editor.selectedLanguage.character==="undefined"?" character":" "+editor.selectedLanguage.character;}else{charOrChars=typeof editor.selectedLanguage.characters==="undefined"?" characters":" "+editor.selectedLanguage.characters;}
1409text_content+=this.optionsObject.details["word_count"]?" "+numbers_with_commas_array['word_count']+wordOrWords:"";text_content+=this.optionsObject.details["character_count"]?" "+numbers_with_commas_array['character_count']+charOrChars:"";$(".counted").text(text_content);var glyEnabled=false;try{glyEnabled=(typeof IsGrammarlyEnabled==='function')&&IsGrammarlyEnabled();}catch(e){glyEnabled=false;}
1410var showBanners=(parseInt(this.count['word_count'],10)>=10)&&!glyEnabled;if(showBanners){if($.trim($('#gly-cta-1').html()||'')===''){$('#gly-cta-1').html('Your text might contain writing issues <a rel="nofollow" href="javascript:void(0);" class="_btncheck" data-target="_blank">Check</a>');$('#gly-cta-2').html('Detect even the most difficult-to-spot writing mistakes <a rel="nofollow" href="javascript:void(0);" class="_btncheck" data-target="_blank" title="Enable Now" style="margin-left: 5px; text-decoration: none;"><div class="toggle-switch"><div class="toggle-slider"></div></div></a>');BindSubmit();}
1411if(typeof wcGlyShowIfNotEmpty==='function'){wcGlyShowIfNotEmpty('#gly-cta-1');wcGlyShowIfNotEmpty('#gly-cta-2');}}else if(typeof wcGlyClearCtas==='function'){wcGlyClearCtas();}else{$('#gly-cta-1').html('').hide();$('#gly-cta-2').html('').hide();}
1412if(typeof syncGlyUIState==='function'){syncGlyUIState('display-count');}else if(isQuestionOrSuggestVisible()){$('#gly-cta-2').hide();}else{$('#gly-cta-2').show();}};Editor.prototype.commaSeparateNumber=function(arr_of_numbers){var number_with_commas_arr=[];for(var key in arr_of_numbers){number_with_commas_arr[key]=arr_of_numbers[key];}
1413for(var key in number_with_commas_arr){while(/(\d+)(\d{3})/.test(number_with_commas_arr[key].toString())){number_with_commas_arr[key]=number_with_commas_arr[key].toString().replace(/(\d+)(\d{3})/,'$1'+','+'$2');}}
1414return number_with_commas_arr;};Editor.prototype.displayTextBoxes=function(flag){var src=flag?this.count_for_selection:this.count;var keysToComma=['word_count','unique_word_count','character_count','chars_no_spaces','sentence_count','paragraph_count','avg_sentence_words','longest_sentence_words','shortest_sentence_words','avg_sentence_chars','avg_word_length','avg_page_by_word','count_words_syllables','lines_count','words_manuscript'];var formatted={};for(var k in src){if(!src.hasOwnProperty(k))continue;var v=src[k];if(keysToComma.indexOf(k)!==-1&&typeof v==='number'){formatted[k]=this.commaSeparateNumber([v])[0];}else{formatted[k]=v;}}
1415$("#word_count, #word_count1").text(formatted['word_count']||0);$("#unique_word_count, #unique_word_count1").text(formatted['unique_word_count']||0);$("#character_count, #character_count1").text(formatted['character_count']||0);$("#character_count_no_spaces, #character_count_no_spaces1").text(formatted['chars_no_spaces']||0);$("#sentence_count, #sentence_count1").text(formatted['sentence_count']||0);$("#paragraph_count, #paragraph_count1").text(formatted['paragraph_count']||0);$("#avg_sentence_words, #avg_sentence_words1").text(formatted['avg_sentence_words']||0);$("#longest_sentence_words, #longest_sentence_words1").text(formatted['longest_sentence_words']||0);$("#shortest_sentence_words, #shortest_sentence_words1").text(formatted['shortest_sentence_words']||0);$("#avg_sentence_chars, #avg_sentence_chars1").text(formatted['avg_sentence_chars']||0);$("#avg_word_length, #avg_word_length1").text(formatted['avg_word_length']||0);$("#avg_page_by_word, #avg_page_by_word1").text(formatted['avg_page_by_word']||0);$("#count_words_syllables, #count_words_syllables1").text(formatted['count_words_syllables']||0);$("#lines_count, #lines_count1").text(formatted['lines_count']||0);$("#words_manuscript, #words_manuscript1").text(formatted['words_manuscript']||0);$("#reading_level, #reading_level1").text(src['reading_level']||formatted['reading_level']||'');$("#reading_time, #reading_time1").text(src['reading_time']||'');$("#speaking_time, #speaking_time1").text(src['speaking_time']||'');$("#hand_writing_time, #hand_writing_time1").text(src['hand_writing_time']||'');};Editor.prototype.replaceDivToEn=function(html,word){if(html==null)html="";if(typeof html!=="string")html=String(html);var text=html.replace(/<br\s*[\/]?>/gi,"\n").replace(/<div\s*[\/]?>/gi,"\n").replace(/<\/div>/gi,"").replace(/&nbsp;/gi," ");if(word===true){text=text.replace(/&lt;/gi,' <').replace(/&gt;/gi,'>');}else{text=text.replace(/&lt;/gi,'<').replace(/&gt;/gi,'>');}
1416var tmp=document.createElement("div");try{tmp.innerHTML=text;}catch(e){return"";}
1417(function sanitize(el){if(el.nodeType===1){for(var a=el.attributes.length-1;a>=0;a--){var name=el.attributes[a].name;if(/^on/i.test(name))el.removeAttribute(name);}
1418for(var c=0;c<el.childNodes.length;c++)sanitize(el.childNodes[c]);}})(tmp);return tmp.textContent||tmp.innerText||"";};Editor.prototype.wordCountInternational=function(){var text=this.box.val();var isActive=(document.activeElement===this.node_for_box);var selStart=this.node_for_box.selectionStart;var selEnd=this.node_for_box.selectionEnd;var hasNativeSelection=isActive&&typeof selStart==='number'&&typeof selEnd==='number'&&selEnd>selStart;var selected_text=hasNativeSelection?text.substring(selStart,selEnd):'';if(hasNativeSelection){$('#for_counting_lines').val(selected_text);this.countAll(this.removeUncountablePartsFromText(selected_text),true);}else{$('#for_counting_lines').val(text);this.countAll(this.removeUncountablePartsFromText(text),false);}};Editor.prototype.removeUncountablePartsFromText=function(text){var filteredText=text;var openIndex=0,closeIndex=0,index=0;while(true){if(filteredText.indexOf('~~~')!==-1){openIndex=filteredText.indexOf('~~~');index=openIndex+3;if(filteredText.indexOf('~~~',index)!==-1){closeIndex=filteredText.indexOf('~~~',index)+3;filteredText=filteredText.slice(0,openIndex)+filteredText.slice(closeIndex);}
1419else{break;}}
1420else{break;}}
1421return filteredText;};var timer=function(name){var start=new Date();return{stop:function(){var end=new Date();var time=end.getTime()-start.getTime();console.log('Timer:',name,'finished in',time,'ms');}}};Editor.prototype.countAll=function(text,flag){if(this.optionsObject.details['word_count']){this.countWords(text,flag);}
1422else{this.count['word_count']=0;this.count_for_selection['word_count']=0;}
1423if(this.optionsObject.details['character_count']){this.countCharacters(text,flag);}
1424else{this.count['character_count']=0;this.count_for_selection['character_count']=0;}
1425if(this.optionsObject.details['character_count_no_spaces']){this.countCharactersWithoutSpaces(text,flag);}
1426else{this.count['chars_no_spaces']=0;this.count_for_selection['chars_no_spaces']=0;}
1427if(this.optionsObject.details['unique_word_count']){this.countUniqueWords(text,flag);}
1428if(this.optionsObject.details['sentence_count']){this.countSentences(text,flag);}
1429else{this.count['sentence_count']=0;this.count_for_selection['sentence_count']=0;}
1430this.countLongestSentenceWords(text,flag);this.countShortestSentenceWords(text,flag);this.countAvgSentenceWords(text,flag);this.countAvgSentenceChars(text,flag);this.countAvgWordLength(text,flag);this.countAvgPagesByWord(text,flag);this.countWordSyllables(text,flag);if(this.optionsObject.details['lines_count']){this.countLines(text,flag);}
1431else{this.count['lines_count']=0;this.count_for_selection['lines_count']=0;}
1432this.countWordsManuscript(text,flag);if(this.optionsObject.details['paragraph_count']){this.countParagraphs(text,flag);}
1433else{this.count['paragraph_count']=0;this.count_for_selection['paragraph_count']=0;}
1434this.readingTime(text,flag);this.speakingTime(text,flag);this.handWritingTime(text,flag);this.readingLevel(text,flag);this.displayCount(flag);this.displayTextBoxes(flag);goal.updateGoalBox();if(text==''){$('#case-btn').attr('disabled','disabled');}else{$('#case-btn').removeAttr('disabled');}};Editor.prototype.countCharacters=function(text,flag){var chars,chars_count;if(text.length<100000){chars=text.match(/(?:[^\r\n]|\r(?!\n))/g);chars_count=chars!==null?chars.length:0;}else{chars_count=text.length;}
1435if(flag){this.count_for_selection['character_count']=chars_count;}
1436else{this.count['character_count']=chars_count;}};Editor.prototype.countWords=function(text,flag){var $this=this;var words=this.wordsOfText(text);var words_count;this.uniqueWords=[];if(this.optionsObject.details['unique_word_count']){if(Array.isArray(words)){$this.uniqueWords=$this.uniqueArray(words);}}
1437words_count=words!==null?words.length:0;if(flag){this.count_for_selection['word_count']=words_count;}else{this.count['word_count']=words_count;}};Editor.prototype.wordsOfText=function(text){var words,matches;var text_without_space=text.replace(/\s+/g,'');matches=text_without_space.match(/([^\x00-\x7F\u2013\u2014])+/gi);var latin_only=(matches===null);if(latin_only==false){words=text.match(/\S+/g);}
1438else{var sanitized=text.replace(/([a-z0-9])([.?!])([A-Z])/g,'$1$2 $3').replace(/([a-zA-Z]),([a-zA-Z])/g,'$1, $2');words=sanitized.match(/[A-Za-z0-9]+(?:['\-,.@][A-Za-z0-9]+)*/g);}
1439return words;};Editor.prototype.uniqueArray=function(array){var obj={},len=array.length,unique_arr=[];for(var i=0;i<len;i++){obj[array[i].toLowerCase()]=array[i];}
1440for(var key in obj){unique_arr.push(key);}
1441return unique_arr;};Editor.prototype.countWordSyllables=function(text,flag){if(this.optionsObject.details['count_words_syllables']){var wordsArr=text.split(/\W+/);var wordsSyllables=0;var len=wordsArr.length;for(var i=0;i<len;i++){wordsArr[i]=wordsArr[i].toLowerCase();if(wordsArr[i]in this.word_exceptions){wordsSyllables+=this.word_exceptions[wordsArr[i]];}
1442else if(wordsArr[i].length<=2&&wordsArr[i].length>=1){wordsSyllables++;}
1443else if(wordsArr[i].length>2){wordsArr[i]=wordsArr[i].replace(/(?:[^laeiouy]es|ed|[^laeiouy]e)$/,'');wordsArr[i]=wordsArr[i].replace(/^y/,'');if(!wordsArr[i].match(/[aeiouy]{1,2}/g)){wordsSyllables++;}
1444else{var wordSyllables=wordsArr[i].match(/[aeiouy]{1,2}/g).length;wordsSyllables+=wordSyllables;}}}
1445if(flag){this.count_for_selection['count_words_syllables']=text!=''?wordsSyllables:0;}
1446else{this.count['count_words_syllables']=text!=''?wordsSyllables:0;}}
1447else{if(flag){this.count_for_selection['count_words_syllables']=0;}
1448else{this.count['count_words_syllables']=0;}}};Editor.prototype.countCharactersWithoutSpaces=function(text,flag){var chars_no_spaces=text.match(/\S/g);if(flag){this.count_for_selection['chars_no_spaces']=(chars_no_spaces!==null?chars_no_spaces.length:0);}
1449else{this.count['chars_no_spaces']=(chars_no_spaces!==null?chars_no_spaces.length:0);}};Editor.prototype.getSentences=function(text){var s=(text||'').trim();if(!s||!/[0-9A-Za-z]/.test(s))return[];if(typeof Intl!=='undefined'&&typeof Intl.Segmenter==='function'){try{var seg=new Intl.Segmenter(undefined,{granularity:'sentence'});var out=[];for(const{segment}of seg.segment(s)){var t=segment.trim();if(t&&/[0-9A-Za-z]/.test(t)&&!/^(?:\.{3,}|…)$/.test(t))out.push(t);}
1450if(out.length)return out;}catch(e){}}
1451var sanitized=s.replace(/\.{3,}/g,'…');var parts=sanitized.split(/([.!?]+(?:['"’”)\]}»]+)?(?:\s+|$))/g);var sentences=[];var buf='';for(var i=0;i<parts.length;i++){buf+=parts[i]||'';if(/[.!?]+(?:['"’”)\]}»]+)?(?:\s+|$)$/.test(parts[i]||'')){var t=buf.trim();if(t&&!/^(?:\.{3,}|…)$/.test(t))sentences.push(t);buf='';}}
1452if(buf.trim())sentences.push(buf.trim());return sentences;};Editor.prototype.countSentences=function(text,flag){var s=(text||'').trim();var target=flag?this.count_for_selection:this.count;if(!s||!/[0-9A-Za-z]/.test(s)){target.sentence_count=0;return;}
1453var count=0;
1453if(typeof Intl!=='undefined'&&typeof Intl.Segmenter==='function'){try{var seg=new Intl.Segmenter(undefined,{granularity:'sentence'});var parts=[];for(const{segment}of seg.segment(s)){var t=segment.trim();if(t&&/[0-9A-Za-z]/.test(t)&&!/^(?:\.{3,}|…)$/.test(t)){parts.push(t);}}
1454count=parts.length;}catch(e){}}
1455if(count===0){var sanitized=s.replace(/\.{3,}/g,'…');var hits=sanitized.match(/[.!?]+(?=(?:['"’”)\]}»]+)?(?:\s+|$))/g);count=hits?hits.length:0;if(!/[.!?]+(?:['"’”)\]}»]+)?\s*$/.test(sanitized)){count+=1;}}
1456target.sentence_count=count;};Editor.prototype.countParagraphs=function(text,flag){var paragraphs=text.match(/(\n\n?|^).+?(?=\n?\n?|$)/g);if(flag){this.count_for_selection['paragraph_count']=(text!=''?(paragraphs!==null?paragraphs.length:0):0);}
1457else{this.count['paragraph_count']=(text!=''?(paragraphs!==null?paragraphs.length:0):0);}};Editor.prototype.countUniqueWords=function(text,flag){if(this.optionsObject.details['unique_word_count']){if(!this.optionsObject.details['word_count'])
1458this.countWords(text,flag);if(flag){this.count_for_selection['unique_word_count']=this.uniqueWords.length;}
1459else{this.count['unique_word_count']=this.uniqueWords.length;}}
1460else{if(flag){this.count_for_selection['unique_word_count']=0;}
1461else{this.count['unique_word_count']=0;}}};Editor.prototype.countLongestSentenceWords=function(text,flag){if(this.optionsObject.details.longest_sentence_words){var sentences=this.getSentences(text);var maxWords=0;for(var i=0;i<sentences.length;i++){var w=this.wordsOfText(sentences[i]);var wc=w?w.length:0;if(wc>maxWords)maxWords=wc;}
1462if(!sentences.length&&text){var w2=this.wordsOfText(text);maxWords=w2?w2.length:0;}
1463if(flag)this.count_for_selection['longest_sentence_words']=maxWords;else this.count['longest_sentence_words']=maxWords;}else{if(flag)this.count_for_selection['longest_sentence_words']=0;else this.count['longest_sentence_words']=0;}};Editor.prototype.countShortestSentenceWords=function(text,flag){if(this.optionsObject.details.shortest_sentence_words){var sentences=this.getSentences(text);var minWords=0,first=true;for(var i=0;i<sentences.length;i++){var w=this.wordsOfText(sentences[i]);var wc=w?w.length:0;if(first){minWords=wc;first=false;}
1464else if(wc<minWords){minWords=wc;}}
1465if(!sentences.length&&text){var w2=this.wordsOfText(text);minWords=w2?w2.length:0;}
1466if(flag)this.count_for_selection['shortest_sentence_words']=minWords;else this.count['shortest_sentence_words']=minWords;}else{if(flag)this.count_for_selection['shortest_sentence_words']=0;else this.count['shortest_sentence_words']=0;}};Editor.prototype.countAvgSentenceWords=function(text,flag){if(this.optionsObject.details['avg_sentence_words']){if(!this.optionsObject.details['word_count'])this.countWords(text,flag);if(!this.optionsObject.details['sentence_count'])this.countSentences(text,flag);if(flag){var w=this.count_for_selection['word_count']||0;var s=this.count_for_selection['sentence_count']||0;this.count_for_selection['avg_sentence_words']=(s>0)?Math.ceil(w/s):0;}else{var w2=this.count['word_count']||0;var s2=this.count['sentence_count']||0;this.count['avg_sentence_words']=(s2>0)?Math.ceil(w2/s2):0;}}else{if(flag)this.count_for_selection['avg_sentence_words']=0;else this.count['avg_sentence_words']=0;}};Editor.prototype.countAvgSentenceChars=function(text,flag){if(this.optionsObject.details['avg_sentence_chars']){if(!this.optionsObject.details['character_count'])this.countCharacters(text,flag);if(!this.optionsObject.details['sentence_count'])this.countSentences(text,flag);if(flag){var c=this.count_for_selection['character_count']||0;var s=this.count_for_selection['sentence_count']||0;this.count_for_selection['avg_sentence_chars']=(s>0)?Math.ceil(c/s):0;}else{var c2=this.count['character_count']||0;var s2=this.count['sentence_count']||0;this.count['avg_sentence_chars']=(s2>0)?Math.ceil(c2/s2):0;}}else{if(flag)this.count_for_selection['avg_sentence_chars']=0;else this.count['avg_sentence_chars']=0;}};Editor.prototype.countAvgWordLength=function(text,flag){if(this.optionsObject.details['avg_word_length']){if(!this.optionsObject.details['word_count'])this.countWords(text,flag);if(!this.optionsObject.details['character_count_no_spaces'])this.countCharactersWithoutSpaces(text,flag);if(flag){var w=this.count_for_selection['word_count']||0;var c=this.count_for_selection['chars_no_spaces']||0;this.count_for_selection['avg_word_length']=(w>0)?Math.round((c/w)*10)/10:0;}else{var w2=this.count['word_count']||0;var c2=this.count['chars_no_spaces']||0;this.count['avg_word_length']=(w2>0)?Math.round((c2/w2)*10)/10:0;}}else{if(flag)this.count_for_selection['avg_word_length']=0;else this.count['avg_word_length']=0;}};Editor.prototype.countAvgPagesByWord=function(text,flag){if(this.optionsObject.details['avg_page_by_word']){if(!this.optionsObject.details['word_count'])
1467this.countWords(text,flag);if(flag){this.count_for_selection['avg_page_by_word']=text!=''?Math.round((this.count_for_selection['word_count']/450)*10)/10:0;}
1468else{this.count['avg_page_by_word']=text!=''?Math.round((this.count['word_count']/450)*10)/10:0;}}
1469else{if(flag){this.count_for_selection['avg_page_by_word']=0;}
1470else{this.count['avg_page_by_word']=0;}}};Editor.prototype.countAvgCharsPerLine=function(box_width){var $this=this;this.count['avg_width_of_char']=0;this.count_for_selection['avg_width_of_char']=0;var n=$('#for_counting_characters span').length||1;$('#for_counting_characters span').each(function(){$this.count['avg_width_of_char']+=$(this).width();$this.count_for_selection['avg_width_of_char']+=$(this).width();});this.count['avg_width_of_char']=Math.round(this.count['avg_width_of_char']/n);this.count_for_selection['avg_width_of_char']=Math.round(this.count_for_selection['avg_width_of_char']/n);this.count['avg_chars_count_per_line']=this.count['avg_width_of_char']?(box_width/this.count['avg_width_of_char']):0;this.count_for_selection['avg_chars_count_per_line']=this.count_for_selection['avg_width_of_char']?(box_width/this.count_for_selection['avg_width_of_char']):0;};Editor.prototype.countLines=function(text,flag){$('#for_counting_lines').css({'padding':this.box.css('padding'),'padding-top':0,'padding-bottom':0,'overflow':'hidden'});var el=$('#for_counting_lines')[0];var actualHeight=el?el.scrollHeight:0;var lineHeight=parseFloat(this.box.css('line-height'))||20;var lines=text?Math.round(actualHeight/lineHeight):0;if(flag)this.count_for_selection['lines_count']=lines;else this.count['lines_count']=lines;};Editor.prototype.countWordsManuscript=function(text,flag){if(this.optionsObject.details['words_manuscript']){if(!this.optionsObject.details['lines_count'])
1471this.countLines(text,flag);if(!this.optionsObject.details['character_count'])
1472this.countCharacters(text,flag);var box_readonly_width=$('#box-readonly').width();var box_width=this.box.width();if(box_readonly_width-box_width==15||box_readonly_width-box_width<0){this.countAvgCharsPerLine(box_width);}
1473else{this.countAvgCharsPerLine(box_readonly_width);}
1474if(flag){this.count_for_selection['words_manuscript']=text!=''?Math.round((this.count_for_selection['avg_chars_count_per_line']/6)*this.count_for_selection['lines_count']):0;}
1475else{this.count['words_manuscript']=text!=''?Math.round((this.count['avg_chars_count_per_line']/6)*this.count['lines_count']):0;}}
1476else{if(flag){this.count_for_selection['words_manuscript']=0;}
1477else{this.count['words_manuscript']=0;}}};Editor.prototype.readingTime=function(text,flag){if(this.optionsObject.details["reading_time"]){var int_part_of_number,decimal_part_of_number;if(!this.optionsObject.details['word_count'])
1478this.countWords(text,flag);if(flag){var duration1=this.count_for_selection['word_count']/this.optionsObject.wordsPerMinuteForReading;if(duration1<1){this.count_for_selection['reading_time']=Math.ceil(duration1*60)+' '+editor.selectedLanguage.sec;}
1479else if(duration1>=1&&duration1<60){duration1=Math.round(duration1*100)/100;int_part_of_number=Math.floor(duration1);decimal_part_of_number=Math.round(duration1%1*60);this.count_for_selection['reading_time']=int_part_of_number+' '+(int_part_of_number==1?editor.selectedLanguage.minute:editor.selectedLanguage.mins)+' '+decimal_part_of_number+' '+editor.selectedLanguage.sec}
1480else{duration1=Math.round((duration1/60)*100)/100;int_part_of_number=Math.floor(duration1);decimal_part_of_number=Math.round(duration1%1*60);this.count_for_selection['reading_time']=int_part_of_number+' '+(int_part_of_number==1?editor.selectedLanguage.hr:editor.selectedLanguage.hrs)+' '+decimal_part_of_number+' '+(decimal_part_of_number<=1?editor.selectedLanguage.minute:editor.selectedLanguage.mins);}}
1481else{var duration2=this.count['word_count']/this.optionsObject.wordsPerMinuteForReading;if(duration2<1){this.count['reading_time']=Math.ceil(duration2*60)+' '+editor.selectedLanguage.sec;}
1482else if(duration2>=1&&duration2<60){duration2=Math.round(duration2*100)/100;int_part_of_number=Math.floor(duration2);decimal_part_of_number=Math.round(duration2%1*60);this.count['reading_time']=int_part_of_number+' '+(int_part_of_number==1?editor.selectedLanguage.minute:editor.selectedLanguage.mins)+' '+decimal_part_of_number+' '+editor.selectedLanguage.sec}
1483else{duration2=Math.round((duration2/60)*100)/100;int_part_of_number=Math.floor(duration2);decimal_part_of_number=Math.round(duration2%1*60);this.count['reading_time']=int_part_of_number+' '+(int_part_of_number==1?editor.selectedLanguage.hr:editor.selectedLanguage.hrs)+' '+decimal_part_of_number+' '+(decimal_part_of_number<=1?editor.selectedLanguage.minute:editor.selectedLanguage.mins);}}}else{if(flag){this.count_for_selection['reading_time']=0+' '+editor.selectedLanguage.sec;}
1484else{this.count['reading_time']=0+' '+editor.selectedLanguage.sec;}}};Editor.prototype.speakingTime=function(text,flag){if(this.optionsObject.details["speaking_time"]){if(!this.optionsObject.details['word_count'])
1485this.countWords(text,flag);if(flag){var duration1=this.count_for_selection['word_count']/this.optionsObject.wordsPerMinuteForSpeaking;if(duration1<1){this.count_for_selection['speaking_time']=Math.ceil(duration1*60)+' '+editor.selectedLanguage.sec;}
1486else if(duration1>=1&&duration1<60){duration1=Math.round(duration1*100)/100;int_part_of_number=Math.floor(duration1);decimal_part_of_number=Math.round(duration1%1*60);this.count_for_selection['speaking_time']=int_part_of_number+' '+(int_part_of_number==1?editor.selectedLanguage.minute:editor.selectedLanguage.mins)+' '+decimal_part_of_number+' '+editor.selectedLanguage.sec}
1487else{duration1=Math.round((duration1/60)*100)/100;int_part_of_number=Math.floor(duration1);decimal_part_of_number=Math.round(duration1%1*60);this.count_for_selection['speaking_time']=int_part_of_number+' '+(int_part_of_number==1?editor.selectedLanguage.hr:editor.selectedLanguage.hrs)+' '+decimal_part_of_number+' '+(decimal_part_of_number<=1?editor.selectedLanguage.minute:editor.selectedLanguage.mins);}}
1488else{var duration2=this.count['word_count']/this.optionsObject.wordsPerMinuteForSpeaking;if(duration2<1){this.count['speaking_time']=Math.ceil(duration2*60)+' '+editor.selectedLanguage.sec;}
1489else if(duration2>=1&&duration2<60){duration2=Math.round(duration2*100)/100;int_part_of_number=Math.floor(duration2);decimal_part_of_number=Math.round(duration2%1*60);this.count['speaking_time']=int_part_of_number+' '+(int_part_of_number==1?editor.selectedLanguage.minute:editor.selectedLanguage.mins)+' '+decimal_part_of_number+' '+editor.selectedLanguage.sec}
1490else{duration2=Math.round((duration2/60)*100)/100;int_part_of_number=Math.floor(duration2);decimal_part_of_number=Math.round(duration2%1*60);this.count['speaking_time']=int_part_of_number+' '+(int_part_of_number==1?editor.selectedLanguage.hr:editor.selectedLanguage.hrs)+' '+decimal_part_of_number+' '+(decimal_part_of_number<=1?editor.selectedLanguage.minute:editor.selectedLanguage.mins);}}}else{if(flag){this.count_for_selection['speaking_time']=0+' '+editor.selectedLanguage.sec;}
1491else{this.count['speaking_time']=0+' '+editor.selectedLanguage.sec;}}};Editor.prototype.handWritingTime=function(text,flag){var int_part_of_number,decimal_part_of_number;if(this.optionsObject.details["hand_writing_time"]){if(!this.optionsObject.details['character_count'])
1492this.countCharacters(text,flag);if(flag){var duration1=this.count_for_selection['character_count']/this.optionsObject.lettersPerMinuteForHandWriting;if(duration1<1){this.count_for_selection['hand_writing_time']=Math.ceil(duration1*60)+' '+editor.selectedLanguage.sec;}
1493else if(duration1>=1&&duration1<60){duration1=Math.round(duration1*100)/100;int_part_of_number=Math.floor(duration1);decimal_part_of_number=Math.round(duration1%1*60);this.count_for_selection['hand_writing_time']=int_part_of_number+' '+(int_part_of_number==1?editor.selectedLanguage.minute:editor.selectedLanguage.mins)+' '+decimal_part_of_number+' '+editor.selectedLanguage.sec}
1494else{duration1=Math.round((duration1/60)*100)/100;int_part_of_number=Math.floor(duration1);decimal_part_of_number=Math.round(duration1%1*60);this.count_for_selection['hand_writing_time']=int_part_of_number+' '+(int_part_of_number==1?editor.selectedLanguage.hr:editor.selectedLanguage.hrs)+' '+decimal_part_of_number+' '+(decimal_part_of_number<=1?editor.selectedLanguage.minute:editor.selectedLanguage.mins);}}
1495else{var duration2=this.count['character_count']/this.optionsObject.lettersPerMinuteForHandWriting;if(duration2<1){this.count['hand_writing_time']=Math.ceil(duration2*60)+' '+editor.selectedLanguage.sec;}
1496else if(duration2>=1&&duration2<60){duration2=Math.round(duration2*100)/100;int_part_of_number=Math.floor(duration2);decimal_part_of_number=Math.round(duration2%1*60);this.count['hand_writing_time']=int_part_of_number+' '+(int_part_of_number==1?editor.selectedLanguage.minute:editor.selectedLanguage.mins)+' '+decimal_part_of_number+' '+editor.selectedLanguage.sec}
1497else{duration2=Math.round((duration2/60)*100)/100;int_part_of_number=Math.floor(duration2);decimal_part_of_number=Math.round(duration2%1*60);this.count['hand_writing_time']=int_part_of_number+' '+(int_part_of_number==1?editor.selectedLanguage.hr:editor.selectedLanguage.hrs)+' '+decimal_part_of_number+' '+(decimal_part_of_number<=1?editor.selectedLanguage.minute:editor.selectedLanguage.mins);}}}else{if(flag){this.count_for_selection['hand_writing_time']=0+' '+editor.selectedLanguage.sec;}
1498else{this.count['hand_writing_time']=0+' '+editor.selectedLanguage.sec;}}};Editor.prototype.readingLevel=function(text,flag){if(this.optionsObject.details["reading_level"]){if(!this.optionsObject.details['sentence_count'])
1499this.countSentences(text,flag);if(flag){if(this.count_for_selection['sentence_count']>2){var d=new DaleChallIndex(text,this.count_for_selection['sentence_count']);this.count_for_selection['reading_level']=d.getReadingLevel();}
1500else{this.count_for_selection['reading_level']=editor.selectedLanguage.n_a;}}
1501else{if(this.count['sentence_count']>2){var d=new DaleChallIndex(text,this.count['sentence_count']);this.count['reading_level']=d.getReadingLevel();}
1502else{this.count['reading_level']=editor.selectedLanguage.n_a;}}}
1503else{if(flag){this.count_for_selection['reading_level']=editor.selectedLanguage.n_a;}
1504else{this.count['reading_level']=editor.selectedLanguage.n_a;}}};Editor.prototype.setWPM=function(obj,type){var words_per_minute_reading=$
1504('#words_per_minut_reading');var words_per_minute_speaking=$('#words_per_minut_speaking');if(type=='reading'){words_per_minute_reading.val($(obj).data('number'));this.changeOption({'wordsPerMinuteForReading':words_per_minute_reading.val()});}
1505else if(type=='speaking'){words_per_minute_speaking.val($(obj).data('number'));this.changeOption({'wordsPerMinuteForSpeaking':words_per_minute_speaking.val()});}};Editor.prototype.setLPM=function(obj){var score=$(obj).data('number');$('#letters_per_minute').val(score);this.changeOption({'lettersPerMinuteForHandWriting':score});};Editor.prototype.changeDetails=function(){var savedObject={'details':{}};var $this=this;$('#details .bootstrap-switch-handle-on, #details .bootstrap-switch-handle-off, #details .bootstrap-switch-label').on('click',function(){var savedObject={'details':{}};var obj=$(this).parent().find('input');var id=obj.data('detail');var state=obj.prop('checked');savedObject.details[id]=state;$this.changeOption(savedObject);$this.wordCountInternational();});};Editor.prototype.changeButtonDetails=function(){var $this=this;$('#buttons .bootstrap-switch-handle-on, #buttons .bootstrap-switch-handle-off, #buttons .bootstrap-switch-label').on('click',function(){var savedObject={'buttons':{}};var obj=$(this).parent().find('input');var id=obj.data('detail');var state=obj.prop('checked');savedObject.buttons[id]=state;if(state){$("#"+id).show();if(id=='case-btn'){ga('send','event','case','show button','options -> buttons -> case switch: on');}}else{$("#"+id).hide();if(id=="speed-btn"){$("#copy").hide();savedObject.buttons['copy']=false;$this.resetTimer();}
1506if(id=='case-btn'){ga('send','event','case','hide button','options -> buttons -> case switch: off');}}
1507$this.changeOption(savedObject);});};Editor.prototype.showOrHideSpeedBox=function(obj,close){var savedObject={'buttons':{}};if(close===undefined){if(!$(obj).hasClass('active')){$('#copy').show();savedObject.buttons['copy']=true;$(obj).addClass('active');}else{$('#copy').hide();savedObject.buttons['copy']=false;$(obj).removeClass('active');this.resetTimer();}}else if(close=='close'){$('#copy').hide();savedObject.buttons['copy']=false;$(obj).removeClass('active');this.resetTimer();}
1508this.changeOption(savedObject);};Editor.prototype.showOrHideReadBox=function(obj,close){var savedObject={'buttons':{}};if(close===undefined){if(!$(obj).hasClass('active')){$('#text-to-speech-controls').show();$(obj).addClass('active');}else{$('#text-to-speech-controls').hide();$(obj).removeClass('active');}}else if(close=='close'){$('#text-to-speech-controls').hide();$(obj).removeClass('active');}};Editor.prototype.hideOrShowDetails=function(obj){if($(obj).attr('data-tr-detail')=='hide'){var changeObj={detailsContainer:false};$(obj).attr('data-tr-detail','show');this.changeOption(changeObj);}
1509else if($(obj).attr('data-tr-detail')=='show'){var changeObj={detailsContainer:true};$(obj).attr('data-tr-detail','hide');this.changeOption(changeObj);}};Editor.prototype.checkCollapses=function(){setTimeout(function(){if(!editor.optionsObject.keywordDensityPanel&&!editor.optionsObject.detailsPanel&&!editor.optionsObject.activityPanel){var changeObj={detailsContainer:false};editor.changeOption(changeObj);}},600);};Editor.prototype.checkAccordion=function(){setTimeout(function(){if(!editor.optionsObject.keywordDensityAccordion&&!editor.optionsObject.detailsPanelAccordion&&!editor.optionsObject.activityAccordion){var changeObj={detailsContainer:false};editor.changeOption(changeObj);}},600);};Editor.prototype.sendMessage=function(){var msg=$("#message").val().trim();if(!msg){this._showSendMessageAlert('danger','Error!','Message cannot be empty.');return false;}
1510var dataObject={message:msg};$.ajax({type:"POST",url:"site/send-email",data:dataObject,dataType:"json",success:function(data){if(data&&data.success){editor._showSendMessageAlert('success','Success!','Your message was sent successfully.');}else{editor._showSendMessageAlert('danger','Error!','Sorry, there was a problem sending your message.');}},error:function(){editor._showSendMessageAlert('danger','Error!','Sorry, there was a problem sending your message.');}});};Editor.prototype._showSendMessageAlert=function(type,strongText,message){var safeMessage=escapeHTML(message);var safeStrong=escapeHTML(strongText);var alertHTML='<div class="alert alert-'+type+'" style="text-align: left">
1510'+'<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>'+' <strong>'+safeStrong+'</strong> '+safeMessage+'</div>';var $box=$(".success");$box.html(alertHTML).slideDown();setTimeout(function(){$box.slideUp();},6000);};Editor.prototype.nl2br=function(str,is_xhtml){var breakTag=(is_xhtml||typeof is_xhtml==='undefined')?'<br />':'<br>';return(str+'').replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g,'$1'+breakTag);};Editor.prototype.autoSaveAlert=function(){var icon=$("#revisions-btn i.fa"),diskIc='fa-floppy-o',checkedIc='fa-check',refreshIc='fa-refresh';icon.removeClass(diskIc).addClass(refreshIc+' fa-spin');icon.parent().addClass('active');var checkInterval=setInterval(function(){icon.removeClass(refreshIc+' fa-spin').addClass(checkedIc);var interval=setInterval(function(){icon.removeClass(checkedIc).addClass(diskIc);icon.parent().removeClass('active');clearInterval(interval);},500);clearInterval(checkInterval);},2000);};Editor.prototype.setSelectionRange=function(node,selectionStart,selectionEnd){if(node.setSelectionRange){node.focus();node.setSelectionRange(selectionStart,selectionEnd);}else if(node.createTextRange){var range=node.createTextRange();range.collapse(true);range.moveEnd('character',selectionEnd);range.moveStart('character',selectionStart);range.select();}};Editor.prototype.insertTextAtSelection=function(text){try{if(document.queryCommandSupported&&document.queryCommandSupported('insertText')){this.node_for_box.focus();document.execCommand('insertText',false,text);return;}}catch(e){}
1511var el=this.node_for_box;var start=el.selectionStart||0;var end=el.selectionEnd||0;var val=this.box.val();var next=(val.slice(0,start)+text+val.slice(end));this.box.val(next);var pos=start+text.length;this.setSelectionRange(el,pos,pos);};Editor.prototype.pasteFromClipboard=function(e){if(e){try{e.preventDefault();}catch(err){}
1512try{e.stopPropagation();}catch(err2){}
1513try{if(e.stopImmediatePropagation)e.stopImmediatePropagation();}catch(err3){}}
1514var el=this.node_for_box;if(!el)return;var self=this;var ua=navigator.userAgent||'';var platform=navigator.platform||'';var isIOS=/iPad|iPhone|iPod/i.test(ua)||(platform==='MacIntel'&&navigator.maxTouchPoints&&navigator.maxTouchPoints>1);var val=this.box.val()||'';var start=0,end=0;try{if(typeof el.selectionStart==='number'&&typeof el.selectionEnd==='number'){start=el.selectionStart;end=el.selectionEnd;}else{start=this.getCursorPositionInTextarea(el)||0;end=start;}}catch(ex){start=val.length;end=val.length;}
1515if(!val){start=0;end=0;}else{start=Math.max(0,Math.min(start,val.length));end=Math.max(0,Math.min(end,val.length));}
1516try{this.setSelectionRange(el,start,end);}catch(ex2){}
1517try{el.focus();}catch(ex3){}
1518var insertAndUpdate=function(text){text=(text===undefined||text===null)?'':String(text);text=text.replace(/\r\n?/g,'\n');if(text.length){self.insertTextAtSelection(text);}
1519self.wordCountInternational();self.keywordDensity();if(window.location.href==abs_path){localStorage.setItem('text',self.box.val());}};var manualHint=(function(){if(isIOS)return'Long‑press in the editor, then tap “Paste”.';var isMac=/Mac/i.test(platform);return isMac?'Press ⌘V to paste.':'Press Ctrl+V to paste.';})();try{if(window.clipboardData&&typeof window.clipboardData.getData==='function'){var ieText=window.clipboardData.getData('Text');if(ieText!==undefined&&ieText!==null){insertAndUpdate(ieText);return;}}}catch(ieErr){}
1520try{if(document.execCommand&&document.execCommand('paste')){setTimeout(function(){try{self.wordCountInternational();self.keywordDensity();if(window.location.href==abs_path){localStorage.setItem('text',self.box.val());}}catch(ex5){}},0);return;}}catch(ex6){}
1521if(navigator.clipboard&&typeof navigator.clipboard.readText==='function'){try{var nowTs=Date.now();if(self.__pasteFailAt&&(nowTs-self.__pasteFailAt)>8000){self.__pasteFailedOnce=false;self.__pasteFailAt=0;}}catch(_){}
1522var showTryAgainHint=function(){self.__pasteFailedOnce=true;try{self.__pasteFailAt=Date.now();}catch(_){}
1523self._showPasteHint(isIOS?'Tap Paste again to allow access.':'Allow clipboard access (if prompted), then tap Paste again.');};navigator.clipboard.readText().then(function(clipText){if(clipText){insertAndUpdate(clipText);self.__pasteFailedOnce=false;self.__pasteFailAt=0;return;}
1524if(!self.__pasteFailedOnce){showTryAgainHint();}else{self._showPasteHint(manualHint);}}).catch(function(){if(!self.__pasteFailedOnce){showTryAgainHint();return;}
1525self._showPasteHint(manualHint);});return;}
1526this._showPasteHint(manualHint);};Editor.prototype._showPasteHint=function(msg,duration){duration=duration||1800;msg=msg||'';
1526var anchor=document.querySelector('.top-btns-panel .panel-heading')||document.querySelector('#top_counter')||document.getElementById('editor_container')||document.body;if(!anchor)return;var isBody=(anchor===document.body||anchor===document.documentElement);if(!isBody){try{var cs=window.getComputedStyle?window.getComputedStyle(anchor):null;if(!cs||cs.position==='static'){anchor.style.position='relative';}}catch(e){}}
1527var id='wc-paste-hint';var hint=document.getElementById(id);if(!hint){hint=document.createElement('div');hint.id=id;hint.setAttribute('role','status');hint.setAttribute('aria-live','polite');var placement=isBody?'position:fixed; right:12px; bottom:12px;':'position:absolute; right:8px; top:100%; margin-top:8px;';hint.style.cssText=placement+'background:rgba(33,33,33,.92); color:#fff; padding:6px 8px; border-radius:6px; '+'font-size:12px; line-height:1.3; z-index:10000; max-width:320px; '+'box-shadow:0 2px 8px rgba(0,0,0,.2); pointer-events:none;';anchor.appendChild(hint);}
1528hint.textContent=msg;hint.style.display='block';try{clearTimeout(hint.__t);}catch(e2){}
1529hint.__t=setTimeout(function(){try{hint.style.display='none';}catch(e3){}},duration);};Editor.prototype.setCaretToPos=function(node,pos){this.setSelectionRange(node,pos,pos);};Editor.prototype.editorUndo=function(){document.execCommand("undo",false,null);this.setCaretToPos(this.node_for_box,this.box.prop("selectionEnd"));};Editor.prototype.editorRedo=function(){document.execCommand("redo",false,null);};Editor.prototype.editorClear=function(){var scrollTop=this.body.scrollTop();this.box.focus();document.execCommand("SelectAll",false,null);this.body.scrollTop(scrollTop);document.execCommand('delete',false,'');};Editor.prototype.disableActionButtons=function(status){if(status)
1530$("#undo-btn, #redo-btn, #clear-btn").addClass('disabled');else{$("#undo-btn, #redo-btn, #clear-btn").removeClass('disabled');}};Editor.prototype.getQueryParams=function(qs){qs=qs.split("+").join(" ");var params={},tokens,re=/[?&]?([^=]+)=([^&]*)/g;while(tokens=re.exec(qs)){params[decodeURIComponent(tokens[1])]=decodeURIComponent(tokens[2]);}
1531return params;};String.prototype.toHtmlEntities=function(){return this.replace(/./gm,function(s){return"&#"+s.charCodeAt(0)+";";});};String.fromHtmlEntities=function(string){return(string+"").replace(/&#\d+;/gm,function(s){return String.fromCharCode(s.match(/\d+/gm)[0]);})};function _escapeForRegexLiteral(s){return String(s).replace(/[.*+?^${}()|[\]\\]/g,'\\$&');}
1532Editor.prototype.findStringBetween=function(words,text){if(!Array.isArray(words)||!words.length)return;var safe=words.map(_escapeForRegexLiteral);var pattern='\\b'+safe.join('\\b(.*?)\\b')+'\\b';var re=new RegExp(pattern,'gmi');var matches=text.match(re);if(!matches)return;for(var i=0;i<matches.length;i++){var localFlag=true;var current=matches[i];var sentences=editor.getSentences(current);if(sentences.length>1){for(var l=0;l<sentences.length;l++){var sentenceWords=(sentences[l].replace(/[,;.!:—\/]/g,' ').replace(/[^a-zA-Z\d\s&:]/g,'').match(/\S+/g))||[];if(sentenceWords.length>=words.length){this.findStringBetween(words,sentences[l]);}}}else{var splitWords=(current.replace(/[,;.!:—\/]/g,' ').replace(/[^'a-zA-Z\d\s&:]/g,'').match(/\S+/g))||[];for(var j=1;j<splitWords.length-1;j++){var needsRecurse=(words.length>2&&words.indexOf(splitWords[j])===-1)||(words.length===2&&!$.wordStats.stopWords[splitWords[j]]);if(needsRecurse&&!$.wordStats.stopWords[splitWords[j]]){this.findStringBetween(words,current.slice(splitWords[0].length));localFlag=false;break;}}
1533if(localFlag){var exist=false;for(var k=0;k<this.highlighted_word_array.length;k++){if(current===this.highlighted_word_array[k]){exist=true;break;}}
1534if(!exist)this.highlighted_word_array.push(current);}}}};Editor.prototype.highlightWord=function(ev){var event=ev||window.ev;var $this=$(ev.target);if($this.is('#kwd-accordion a')||$this.is('#kwd-accordion a span')){if($('div.btn-group').hasClass('open')){$('div.btn-group').removeClass('open');}
1535event.preventDefault();if($this.is('#kwd-accordion a span')){$this=$this.parent();}
1536if(!$this.hasClass('active')){var box_readonly=$('#box-readonly');box_readonly.show();var text=this.box.val().replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/\n/g,'<br>').replace(/\r/g,'<br>');box_readonly.html(text);var highlighted_words=$this.find('.word').text();var highlighted_words_splited=highlighted_words.split(' ');
1536if(highlighted_words_splited.length>1){this.highlighted_word_array=[];this.findStringBetween(highlighted_words_splited,box_readonly.text());var escapedList=this.highlighted_word_array.map(_escapeForRegexLiteral);box_readonly.highlight(escapedList,{wordsOnly:true});}else{box_readonly.highlight(_escapeForRegexLiteral(highlighted_words),{wordsOnly:true});}
1537box_readonly.height(this.box.height()+9);$('#form').hide();$this.siblings().removeClass('active');$this.addClass('active');$('#case-btn').addClass('disabled');$('#spell-btn').removeClass('active');this.disableActionButtons(true);}
1538else{this.disableActionButtons(false);$('#box-readonly').hide();$('#form').show();$('#kwd-accordion').find('a').removeClass('active');$('#case-btn').removeClass('disabled');}}};Editor.prototype.unHighlightWord=function(ev){var event=ev||window.event;if(!$(event.target).hasClass('hiddenSpellError')&&!$(event.target).hasClass('hiddenGrammarError')&&!$(event.target).is('#thesaurus-btn')&&!$(event.target).parent().is('#thesaurus-btn')){$('#box-readonly').hide();if($('#spell-btn').hasClass('active')){var text=$('#box-readonly').html();var text_arr=text.split('&gt;');var text_arr1=[];for(var i=0;i<text_arr.length;i++){text_arr1=text_arr[i].split('&lt;');for(var j=0;j<text_arr1.length;j++){text_arr1[j]=this.replaceDivToEn(text_arr1[j]);}
1539text_arr[i]=text_arr1.join('<');}
1540text=text_arr.join('>');$('#box').val(text);}
1541$('#form').show();$('#kwd-accordion').find('a').removeClass('active');$('#spell-btn').removeClass('active');$('#case-btn').removeClass('disabled');this.disableActionButtons(false);this.box.focus();}};Editor.prototype.thesaurusEnableOrDisable=function(){var selected=this.box.selection();if(selected!=''&&selected.length>=2&&selected.length<=50){$('#thesaurus-btn').removeAttr('disabled');this.thesaurus_word=selected.replace(/[,;.!:—\/]/g,' ').replace(/[^a-zA-Z\d\s&:]/g,'').match(/\S+/g);}
1542else{$('#thesaurus-btn').attr('disabled','disabled');}};Editor.prototype.thesaurus=function(ev){ev.preventDefault();var $list=$('#thesaurus_synonyms');$list.empty();if(!this.thesaurus_word||!Array.isArray(this.thesaurus_word)){$list.append($('<span/>',{'class':'thesaurus_error',text:editor.selectedLanguage.no_results}));return;}
1543var thesaurus_word_length=this.thesaurus_word.length;if(!thesaurus_word_length){$list.append($('<span/>',{'class':'thesaurus_error',text:editor.selectedLanguage.no_results}));return;}
1544var text_words=(this.box.val()||'').replace(/[,;.!:—\/]/g,' ').replace(/[^a-zA-Z\d\s&:]/g,'').match(/\S+/g)||[];var text_words_len=text_words.length;var word_exists=0;for(var j=0;j<thesaurus_word_length;j++){for(var i=0;i<text_words_len;i++){if(this.thesaurus_word[j]===text_words[i]){word_exists++;break;}}}
1545if(word_exists!==thesaurus_word_length){$list.append($('<span/>',{'class':'thesaurus_error',text:editor.selectedLanguage.no_results}));return;}
1546$list.append($('<span/>',{'class':'glyphicon glyphicon-refresh glyphicon-spin'}));var phrase=this.thesaurus_word.join(' ');var url='https://words.bighugelabs.com/api/2/1e43949ba926d62523b855b849f84105/'+
1547encodeURIComponent(phrase)+'/json';$.ajax({url:url,dataType:'json'}).done(function(data){$list.empty();if(!data||typeof data!=='object'){$list.append($('<span/>',{'class':'thesaurus_error',text:editor.selectedLanguage.sorry_couldnt_find_any_synonyms_for_this_word}));return;}
1548var count=0;$list.off('click','.thesaurus-choice').on('click','.thesaurus-choice',function(e){e.preventDefault();editor.replaceThesaurusWord(e,this);});$.each(data,function(posKey,posBlock){if(count>=10)return false;$list.append($('<li/>').append($('<a/>',{href:'#','class':'uppercase_word',text:(editor.selectedLanguage[posKey]||posKey)})));var pools=[];if(posBlock&&Array.isArray(posBlock.syn))pools.push(posBlock.syn);if(posBlock&&Array.isArray(posBlock.sim))pools.push(posBlock.sim);for(var p=0;p<pools.length&&count<10;p++){var arr=pools[p];for(var k=0;k<arr.length&&count<10;k++){var choice=String(arr[k]||'');if(!choice)continue;$list.append($('<li/>').append($('<a/>',{href:'#','class':'padding_left thesaurus-choice','data-word':choice}).text(choice)));count++;}}});if(count===0){$list.append($('<span/>',{'class':'thesaurus_error',text:editor.selectedLanguage.sorry_couldnt_find_any_synonyms_for_this_word}));}}).fail(function(){$list.empty().append($('<span/>',{'class':'thesaurus_error',text:editor.selectedLanguage.sorry_couldnt_find_any_synonyms_for_this_word}));});};Editor.prototype.replaceThesaurusWord=function(ev,obj){ev.preventDefault();var selected=this.box.selection();var selected_len=selected.length;var end_str='';var start_str='';var letterNumber=/^[0-9a-zA-Z]+$/;for(var i=selected_len-1;i>=0;i--){if(!selected[i].match(letterNumber)){end_str=selected[i]+end_str;}
1549else{break;}}
1550for(var i=0;i<selected_len;i++){if(!selected[i].match(letterNumber)){start_str=start_str+selected[i];}
1551else{break;}}
1552var selected_word=$(obj).text().toString();selected_word=start_str+selected_word+end_str;if('WebkitAppearance'in document.documentElement.style){this.box.focus();this.insertTextAtSelection(selected_word);$('#thesaurus-btn').attr('disabled','disabled');}
1553else{this.box.selection('replace',{text:selected_word});}};Editor.prototype.openOptionsTab=function(obj){$("#options-modal .modal-body [aria-controls='"+$(obj).attr('data-tab')+"']").click();};Editor.prototype.setTheme=function(theme){$("#theme").attr("href",$('#data-block').data('css-path')+theme+'.css');$("#theme_dropdown option[value='"+theme+"']").attr('selected','selected');};Editor.prototype.setBoxFont=function(font){this.box.css('font-family',font);$("#font_dropdown option[value='"+font+"']").attr('selected','selected');};Editor.prototype.setDateFormat=function(dateFormat){$("#date_format_dropdown option[value='"+dateFormat+"']").attr('selected','selected');this.showActivities();};Editor.prototype.setTimeFormat=function(timeFormat){$("#time_format_dropdown option[value='"+timeFormat+"']").attr('selected','selected');};Editor.prototype.setLanguageForSpeech=function(){for(var i=0;i<this.langs.length;i++){var option=new Option(this.langs[i][0],i);$('#select_language').append(option);}
1554$('#select_language').val(this.optionsObject.selectLanguage);this.updateCountry();$('#select_dialect').val(this.optionsObject.selectDialect);};Editor.prototype.updateCountry=function(){$('#select_dialect').empty();var list=this.langs[$('#select_language').val()];for(var i=1;i<list.length;i++){$('#select_dialect').append(new Option(list[i][1],list[i][0]));}
1555if(list[1].length==1){$('#select_dialect').css('visibility','hidden');$('#select_dialect').prev('label').css('visibility','hidden');}
1556else{$('#select_dialect').css('visibility','visible');$('#select_dialect').prev('label').css('visibility','visible');}};Editor.prototype.speech=function(obj){if('webkitSpeechRecognition'in window){this.speechRecog.lang=$('#select_dialect').val();if(!editor.recording){editor.speechRecog.start();}else{editor.speechRecog.stop();}
1557this.speechRecog.onstart=function(){$(obj).find("i").css("webkitAnimationName","record");editor.recording=true;};this.speechRecog.onerror=function(event){if(event.error=='no-speech'){$(".message_output").html('<div id="message_error" class="alert alert-warning"'+' style="display: none; position: absolute; z-index: 9999; left: 20%; right: 20%;">'+'<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>'+' <strong>No speech was detected!</strong> You may need to adjust your microphone settings.</div>');$("#message_error").fadeIn();setTimeout(function(){$("#message_error").fadeOut();},6000);}
1558if(event.error=='audio-capture'){$(".message_output").html('<div id="message_error" class="alert alert-warning">'+'<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>'+' <strong>Microphone is not turned on!</strong> You need to turn on your microphone.</div>');$("#message_error").fadeIn();setTimeout(function(){$("#message_error").fadeOut();},6000);}
1559if(event.error=='not-allowed'){$(".message_output").html('<div id="message_error" class="alert alert-warning">'+'<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>'+' <strong>Permission to use microphone is blocked.</strong> To change, go to chrome://settings/contentExceptions#media-stream</div>');$("#message_error").fadeIn();setTimeout(function(){$("#message_error").fadeOut();},6000);}};this.speechRecog.onend=function(){editor.recording=false;$(obj).find("i").css("webkitAnimationName","");};this.speechRecog.onresult=function(event){if(typeof(event.results)=='undefined'){editor.speechRecog.onend=null;editor.speechRecog.stop();return;}
1560var i=0;for(i=event.resultIndex;i<event.results.length;i+=1){if(!event.results[i].isFinal){$(".interimResult").text(event.results[i][0].transcript);}else{editor.box.focus();editor.insertTextAtSelection(event.results[i][0].transcript);editor.wordCountInternational();editor.keywordDensity();}}}}
1561else{alert("Speech Recognition Not Supported");}};Editor.prototype.speechUtteranceChunker=function(utt,settings,callback){var $that=this;settings=settings||{};var newUtt;var txt=(settings&&settings.offset!==undefined?utt.text.substring(settings.offset):utt.text);if(utt.voice&&utt.voice.voiceURI==='native'){newUtt=utt;newUtt.text=txt;newUtt.addEventListener('end',function(){if($that.speechUtteranceChunker.cancel){$that.speechUtteranceChunker.cancel=false;}
1562if(callback!==undefined){callback();}});}
1563else{if(txt!=''){var chunkArr=editor.getSentences(txt);if(!chunkArr.length){if(callback!==undefined)callback();return;}
1564if(chunkArr[0].length>=250){var chunkLength=(settings&&settings.chunkLength)||160;var pattRegex=new RegExp('^[\\s\\S]{'+Math.floor(chunkLength/2)+','+chunkLength+'}[.!?,]{1}|^[\\s\\S]{1,'+chunkLength+'}$|^[\\s\\S]{1,'+chunkLength+'} ');chunkArr[0]=txt.match(pattRegex)[0];}
1565if(chunkArr[0].length<=1){if(callback!==undefined){callback();}
1566return}
1567var chunk=chunkArr[0];newUtt=new SpeechSynthesisUtterance(chunk);var x;for(x in utt){if(utt.hasOwnProperty(x)&&x!=='text'){newUtt[x]=utt[x];}}
1568newUtt.addEventListener('end',function(){if($that.speechUtteranceChunker.cancel){$that.speechUtteranceChunker.cancel=false;return;}
1569settings.offset=settings.offset||0;settings.offset+=chunk.length;$that.speechUtteranceChunker(utt,settings,callback);});}
1570else{if(callback!==undefined){callback();}
1571return}}
1572if(settings.modifier){settings.modifier(newUtt);}
1573console.log(newUtt);setTimeout(function(){newUtt.volume=1;newUtt.rate=$('#read_rate').val();newUtt.pitch=$('#read_pitch').val();newUtt.voice=$that.voices[$('#read_voices').val()];speechSynthesis.speak(newUtt);},10);};Editor.prototype.toggleReadControls=function(event,obj){$('#text-to-speech-controls').show();};Editor.prototype.startReading=function(event,obj){this.box.focus();this.wordCountInternational();this.keywordDensity();event.preventDefault();if('speechSynthesis'in window){$('#r-play-link').hide();$('#r-pause-link').show();if(this.paused==true){window.speechSynthesis.resume();console.log('resume');}
1574else{console.log('play');var myLongText;var selection=this.box.selection();if(selection!=''){myLongText=selection;}
1575else{var cursor_pos=this.getCursorPositionInTextarea(this.node_for_box);myLongText=this.box.val();myLongText=myLongText.substring(cursor_pos,this.box.val().length);if(myLongText==''){myLongText=this.box.val();}}
1576var utterance=new SpeechSynthesisUtterance();utterance.text=myLongText;utterance.voice=this.voices[$('#read_voices').val()];$(obj).next('i.fa').show();this.speechUtteranceChunker(utterance,{chunkLength:250},function(){$('#r-play-link').show();$('#r-pause-link').hide();window.speechSynthesis.cancel();});}
1577this.paused=false;}else{alert("Sorry, your browser doesn't support Text to Speech. Use Chrome to use this feature.");}};Editor.prototype.stopReading=function(event,obj){this.box.focus();this.wordCountInternational();this.keywordDensity();event.preventDefault();$('#r-play-link').show();$('#r-pause-link').hide();window.speechSynthesis.cancel();this.speechUtteranceChunker.cancel=true;this.paused=false;console.log('stop');};Editor.prototype.pauseReading=function(event,obj){this.box.focus();this.wordCountInternational();this.keywordDensity();event.preventDefault();$('#r-play-link').show();$('#r-pause-link').hide();window.speechSynthesis.pause();this.paused=true;console.log('pause');};Editor.prototype.checkGrammarSpelling=function(ev,obj){var event=ev||window.ev;event.preventDefault();var box_readonly=$('#box-readonly');if(!$(obj).hasClass('active')){var safeText=escapeHTML(this.box.val()).replace(/\n/g,'<br>');box_readonly.html(safeText);$('#kwd-accordion a').siblings().removeClass('active');$(obj).addClass('active');AtD.rpc=$('#data-block').data('spell-check-url');AtD.check('box-readonly',{success:function(errorCount){if(errorCount==0){alert("No writing errors were found");}},error:function(reason){alert(t('service_unavailable_try_again')||'Sorry, service unavailable, try again in a moment.');},ready:function(count){box_readonly.show();box_readonly.height(editor.box.height()+14);box_readonly.css('max-height',editor.box.height()+14);$('#form').hide();editor.recursive(box_readonly);}});$('#case-btn').addClass('disabled');this.disableActionButtons(true);}
1578else{this.disableActionButtons(false);box_readonly.hide();var text=$('#box-readonly').html().replace(/<br>/g,'\n');var text_arr=text.split('&gt;');var text_arr1=[];for(var i=0;i<text_arr.length;i++){text_arr1=text_arr[i].split('&lt;');for(var j=0;j<text_arr1.length;j++){text_arr1[j]=this.replaceDivToEn(text_arr1[j]);}
1579text_arr[i]=text_arr1.join('<');}
1580text=text_arr.join('>');$('#box').val(text);$('#form').show();$(obj).removeClass('active');$('#case-btn').removeClass('disabled');}};Editor.prototype.recursive=function(box_readonly){var TEXT=3,ELEM=1;function cleanUrlAttr(el,attr){var v=el.getAttribute&&el.getAttribute(attr);if(!v)return;var val=String(v).trim().toLowerCase();if(val.startsWith('javascript:')||val.startsWith('vbscript:')||val.startsWith('data:')){el.removeAttribute(attr);}}
1581function walkAndSanitize(node){if(!node)return;if(node.nodeType===TEXT){return;}
1582if(node.nodeType===ELEM){var tag=(node.tagName||'').toLowerCase();if(/^(script|style|iframe|object|embed|meta|link)$/i.test(tag)){if(node.parentNode)node.parentNode.removeChild(node);return;}
1583var attrs=Array.prototype.slice.call(node.attributes||[]);attrs.forEach(function(attr){if(/^on/i.test(attr.name))node.removeAttribute(attr.name);});
1583['href','src','xlink:href','formaction'].forEach(function(a){cleanUrlAttr(node,a);});var children=Array.prototype.slice.call(node.childNodes);children.forEach(walkAndSanitize);}}
1584box_readonly.children().not('span.mceItemHidden, br').each(function(_i,item){walkAndSanitize(item);});};Editor.prototype.sendRevision=function(ev,obj){ev.preventDefault();var $that=this;jQuery.ajax({type:"POST",url:"site/get-revision",data:{revision_id:$(obj).data('revision-id')}}).done(function(msg){msg=msg.replace(/\n/g,'').replace(/<br>/g,'\n');msg=msg.replace(/&nbsp;/g,' ');if('WebkitAppearance'in document.documentElement.style){msg=msg.replace(/</g,'&lt;');msg=msg.replace(/>/g,'&gt;');editor.box.focus();document.execCommand('selectAll',false,null);$that.insertTextAtSelection(msg);}
1585else{editor.box.val(msg);}
1586$that.keywordDensity();$that.wordCountInternational();$that.setCaretToPos($that.node_for_box,0);if(window.location.href==abs_path){localStorage.setItem('text',$that.box.html());}});};Editor.prototype.readTimer=function(){var written_words,press='no_press';$.extend({APP:{formatTimer:function(a){if(a<10){a='0'+a;}
1587return a;},startTimer:function(dir){if(press=='reset'||press=='no_press')
1588written_words=parseInt($('#word_count').html());var a;$.APP.dir=dir;$.APP.d1=new Date();switch($.APP.state){case'pause':$.APP.t1=$.APP.d1.getTime()-$.APP.td;break;default:$.APP.t1=$.APP.d1.getTime();if($.APP.dir==='cd'){$.APP.t1+=parseInt($('#cd_seconds').val())*1000;}
1589break;}
1590$.APP.state='alive';$('#'+$.APP.dir+'_status').html('Running');$.APP.loopTimer();},pauseTimer:function(){press='pause';$.APP.dp=new Date();$.APP.tp=$.APP.dp.getTime();$.APP.td=$.APP.tp-$.APP.t1;$.APP.state='pause';},stopTimer:function(){$.APP.state='stop';},resetTimer:function(){press='reset';$('#'+$.APP.dir+'_ms,#'+$.APP.dir+'_s,#'+$.APP.dir+'_m,#'+$.APP.dir+'_h').html('00');$('#'+$.APP.dir+'_ms1,#'+$.APP.dir+'_s1,#'+$.APP.dir+'_m1,#'+$.APP.dir+'_h1').html('00');$.APP.state='reset';},endTimer:function(callback){$.APP.state='end';if(typeof callback==='function'){callback();}},loopTimer:function(){var td;var d2,t2;var ms=0;var s=0;var m=0;var h=0;var just_written_words;if($.APP.state==='alive'){d2=new Date();t2=d2.getTime();if($.APP.dir==='sw'){td=t2-$.APP.t1;}else{td=$.APP.t1-t2;if(td<=0){$.APP.endTimer(function(){$.APP.resetTimer();});}}
1591ms=td%1000;if(ms<1){ms=0;}else{just_written_words=parseInt($('#word_count').html())-written_words;if(just_written_words<0){just_written_words=0;written_words--;}
1592$('#wpm, #wpm1').html((just_written_words/(td/1000/60)).toFixed(0));s=(td-ms)/1000;if(s<1){s=0;}else{var m=(s-(s%60))/60;if(m<1){m=0;}else{var h=(m-(m%60))/60;if(h<1){h=0;}}}}
1593ms=Math.round(ms/100);s=s-(m*60);m=m-(h*60);$('#'+$.APP.dir+'_ms, #'+$.APP.dir+'_ms1').html($.APP.formatTimer(ms));$('#'+$.APP.dir+'_s, #'+$.APP.dir+'_s1').html($.APP.formatTimer(s));$('#'+$.APP.dir+'_m, #'+$.APP.dir+'_m1').html($.APP.formatTimer(m));$('#'+$.APP.dir+'_h, #'+$.APP.dir+'_h1').html($.APP.formatTimer(h));$.APP.t=setTimeout($.APP.loopTimer,100);}else{clearTimeout($.APP.t);return true;}}}});};Editor.prototype.startTimer=function(e){e.preventDefault();this.box.focus();$.APP.startTimer('sw');$('#sw-pause-link').show();$('#sw-start-link').hide();};Editor.prototype.pauseTimer=function(e){e.preventDefault();this.box.focus();$.APP.pauseTimer();$('#sw-pause-link').hide();$('#sw-start-link').show();};Editor.prototype.resetTimer=function(e){if(e!==undefined)
1594e.preventDefault();this.box.focus();$('#wpm, #wpm1').html('0');$.APP.resetTimer();$('#sw-pause-link').hide();$('#sw-start-link').show();};Editor.prototype.setGoalForEditor=function(arr){if(arr){var dataObject={'goal_count':arr[0],'goal_type':arr[1],'goal_length_type':arr[2]};$.ajax({type:"POST",url:"site/set-goal",data:dataObject,success:function(data){if(data.success){goal.set(arr);}}});}
1595else{goal.set();}};Editor.prototype.createGoal=function(){var goal_name=$('#goalType').val();var goal_count=$('#goalQty').val();var written_count;if(goal_name==='reading_time'||goal_name==='speaking_time'){if(this.count[goal_name].indexOf('sec')>-1){written_count=Math.round((this.count[goal_name].replace('sec','').trim()/60)*100)/100;}
1596else if(this.count[goal_name].indexOf('mins')>-1){written_count=this.count[goal_name].replace('mins','').trim();}
1597else if(this.count[goal_name].indexOf('hrs')>-1){written_count=this.count[goal_name].replace('hrs','').trim()*60;}}
1598else{written_count=this.count[goal_name];}
1599var goal_type=$('#goalType option[value="'+goal_name+'"]').data('value');var goal_length_type=$('#goalLengthType').val();var dataObject={'goal_type':goal_type,'goal_count':goal_count,'written_count':written_count,'goal_length_type':goal_length_type};$.ajax({type:"POST",url:"site/create-goal",data:dataObject,success:function(data){if(data.success){$(".errorMsgBox").html('<div id="message_error" class="alert alert-success fade in">'
1600+'<a href="#" class="close" data-dismiss="alert" aria-label="close" title="close">&times;</a>'
1601+'<strong>'+t('success')+'</strong> '+t('your_goal_was_created_successfully')
1602+'</div>');editor.getUserGoals(user_id_for_goal);setTimeout(function(){$("#message_error").fadeOut();},6000);editor.setGoalForEditor();goal.setDefaultValues();}
1603else{$(".errorMsgBox").html('<div  class="alert alert-warning" id="message_error">'+'<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>'+'<strong>'+t('warning')+' </strong>
1603'+t(data.type)+'</div>');setTimeout(function(){$("#message_error").fadeOut();},6000);}}});};Editor.prototype.getUserGoals=function(user_id){$.ajax({type:"GET",url:"site/get-user-goals",success:function(data){$('#existing_goals').empty();var goal_count_with_commas;if(data.success==true){if(data.user_goals){data.user_goals.forEach(function(goal,index){goal_count_with_commas=editor.commaSeparateNumber([goal.goal_count]);$('#existing_goals').append('<div class="col-xs-12 user_goal goals_for_logged_in_user" id="goal_'+goal.id+'">'+'<div class="col-xs-1" style="padding: 5px 10px 0 10px">'+(index+1)+'. '+'</div>'+'<div class="col-xs-6 col-sm-5 goal_caption" style="padding: 5px 0 0 0">'+goal_count_with_commas+' '+editor.selectedLanguage[goal.goal_type]+' ('+editor.selectedLanguage[goal.goal_length_type]+')'+'</div>'+'<div class="col-xs-5 col-sm-6" style="padding: 0">'+'<button type="button" class="btn btn-danger btn-xs" style="float:right;margin-right:10px;" onclick="editor.deleteGoal('+goal.id+')">'+editor.selectedLanguage.delete+'</button>'+'<button type="button" class="btn btn-info btn-xs" style="float:right; margin-right:4%;" onclick="editor.slideToggleGoal('+goal.id+', [\''+goal.goal_count+'\', \''+goal.goal_type+'\', \''+goal.goal_length_type+'\'])">'+editor.selectedLanguage.edit+'</button>'+'<button type="button" class="btn btn-primary btn-xs" style="float:right; margin-right:4%;" onclick="editor.setGoalForEditor([\''+goal.goal_count+'\', \''+goal.goal_type+'\', \''+goal.goal_length_type+'\']);">'+editor.selectedLanguage.set+'</button>'+'</div>'+'</div>'+'<div class="col-xs-12" style="margin: 10px 0; display: none;" id="slide_toggle_'+goal.id+'">'+'<div class="col-sm-4 col-xs-3 pl0 pr0">'+'<input type="number" class="form-control goalQty" placeholder="'+editor.selectedLanguage.quantity+'" id="goalQty_'+goal.id+'" type="number" min="0" max="100000" onkeydown="editor.setGoalQuantity(event, this);">'+'</div>'+'<div class="col-sm-4 col-xs-3 pl0 pr0 select_after">'+'<select class="form-control goalType" id="goalType_'+goal.id+'" onchange="editor.setQuantityPlaceholder(this);">'+'<option value="Words">'+editor.selectedLanguage.words_label+'</option>'+'<option value="Characters">'+editor.selectedLanguage.characters_label+'</option>'+'<option value="Sentences">'+editor.selectedLanguage.sentences+'</option>'+'<option value="Paragraphs">'+editor.selectedLanguage.paragraphs+'</option>'+'<option value="Pages">'+editor.selectedLanguage.pages+'</option>'+'<option value="Reading Time">'+editor.selectedLanguage.reading_time+'</option>'+'<option value="Speaking Time">'+editor.selectedLanguage.speaking_time+'</option>'+'<option value="Publisher Words">'+editor.selectedLanguage.publisher_words+'</option>'+'</select>'+'</div>'+'<div class="col-sm-3 col-xs-3 pl0 pr0 select_after">'+'<select class="form-control goalLengthType" id="goalLengthType_'+goal.id+'">'+'<option value="min">'+editor.selectedLanguage.minimum+'</option>'+'<option value="max">'+editor.selectedLanguage.maximum+'</option>'+'</select>'+'</div>'+'<div class="col-sm-1 col-xs-3 pl0 pr0">'+'<button type="button" class="btn btn-info edit_goal_button" onclick="editor.editGoal('+goal.id+');">'+editor.selectedLanguage.save_modal_btn+'</button>'+'</div>'+'</div>');});}}
1604else if(data.success=='empty'){$('#existing_goals').append('<div class="col-md-12 user_goal" id="" style="text-align: center;">'+
1605editor.selectedLanguage.above_you_can_create_your_first_goal+'</div>');}}});};Editor.prototype.slideToggleGoal=function(goal_id,goal_arr){$('#goalQty_'+goal_id).val(goal_arr[0]);$('#goalType_'+goal_id+' option').removeAttr('selected');$('#goalType_'+goal_id+' option[value="'+goal_arr[1]+'"]').attr('selected','selected');$('#goalLengthType_'+goal_id+' option').removeAttr('selected');$('#goalLengthType_'+goal_id+' option[value="'+goal_arr[2]+'"]').attr('selected','selected');if(goal_arr[1]==='Reading Time'||goal_arr[1]==='Speaking Time'){$('#goalQty_'+goal_id).attr('placeholder','Quantity (in minutes)');}
1606$('#slide_toggle_'+goal_id).slideToggle();};Editor.prototype.setQuantityPlaceholder=function(obj){var selected=$(obj).val();if(selected==='reading_time'||selected==='speaking_time'||selected==='Reading Time'||selected==='Speaking Time'){$(obj).parent('div').prev('div').find('input').attr('placeholder',editor.selectedLanguage.quantity_in_minutes);}
1607else{$(obj).parent('div').prev('div').find('input').attr('placeholder',editor.selectedLanguage.quantity);}};
1607Editor.prototype.editGoal=function(goal_id){var goal_count=$('#goalQty_'+goal_id).val();var goal_type=$('#goalType_'+goal_id).val();var goal_length_type=$('#goalLengthType_'+goal_id).val();var dataObject={'id':goal_id,'goal_count':goal_count,'goal_type':goal_type,'goal_length_type':goal_length_type};$.ajax({type:"POST",url:"site/edit-goal",data:dataObject,success:function(data){if(data.success){$('#goal_'+goal_id+' .goal_caption').text(goal_count+' '+goal_type+' ('+goal_length_type+')');$('#goal_'+goal_id+' .btn-info').attr("onclick",'editor.slideToggleGoal('+goal_id+', [\''+goal_count+'\', \''+goal_type+'\', \''+goal_length_type+'\'])');$('#goal_'+goal_id+' .btn-primary').attr("onclick",'editor.setGoalForEditor([\''+goal_count+'\', \''+goal_type+'\', \''+goal_length_type+'\'])');if(data.is_goal_set){goal.set([goal_count,goal_type,goal_length_type]);}
1608$('#slide_toggle_'+goal_id).slideToggle();$(".errorMsgBox").html('<div id="message_error" class="alert alert-success fade in">'
1609+'<a href="#" class="close" data-dismiss="alert" aria-label="close" title="close">&times;</a>'
1610+'<strong>'+t('success')+'</strong> '+t('your_goal_was_saved_successfully')
1611+'</div>');setTimeout(function(){$("#message_error").fadeOut();},6000);}
1612else{$(".errorMsgBox").html('<div  class="alert alert-warning" id="message_error">'+'<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>'+'<strong>'+t('warning')+' </strong>'+t(data.type)+'</div>');setTimeout(function(){$("#message_error").fadeOut();},6000);}}});};Editor.prototype.deleteGoal=function(id){var dataObject={'id':id};$.ajax({type:"POST",url:"site/delete-goal",data:dataObject,success:function(data){if(data.success){$('#goal_'+id).fadeOut(500);if(data.response){editor.disableGoalForEditor();}
1613setTimeout(function(){$('#goal_'+id).remove();$('#slide_toggle_'+id).remove();$('.goals_for_logged_in_user').each(function(key,value){$(value).find('div:first-child').text(key+1);});if($('#existing_goals').children().length==0){$('#existing_goals').append('<div class="col-md-12 user_goal" id="" style="text-align: center;">'+
1614editor.selectedLanguage.above_you_can_create_your_first_goal+'</div>');}},450);$(".errorMsgBox").html('<div id="message_error" class="alert alert-success fade in">'
1615+'<a href="#" class="close" data-dismiss="alert" aria-label="close" title="close">&times;</a>'
1616+'<strong>'+t('success')+'</strong> '+t('your_goal_was_deleted_successfully')
1617+'</div>');setTimeout(function(){$("#message_error").fadeOut();},6000);}
1618else{$(".errorMsgBox").html('<div  class="alert alert-warning" id="message_error">'+'<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>'+'<strong>'+t('warning')+' </strong>'+t(data.message)+'</div>');setTimeout(function(){$("#message_error").fadeOut();},6000);}}});};Editor.prototype.setGoalQuantity=function(e,obj){goal.allowedChars(e,$(obj));};Editor.prototype.disableGoalForEditor=function(arr){goal.disableGoal(arr);};function _escapeRegExpForFind(str){return String(str).replace(/[.*+?^${}()|[\]\\]/g,'\\$&');}
1619Editor.prototype.addSimpleWords=function(){$.ajax({type:"GET",url:"site/add-simple-words",success:function(data){if(data.success){for(var i=0;i<data.simple_words.length;i++){editor.simple_words[data.simple_words[i].simple_words]=1;}}}});};Editor.prototype.findAndReplace=function(){function escapeRegExp(str){return String(str).replace(/[.*+?^${}()|[\]\\]/g,'\\$&');}
1620editor.searchedString=$('#searched_text').val()||'';editor.replacementString=$('#replacement_text').val()||'';var text=editor.box.val()||'';var message_box=$('.message_for_find_and_replace');var escSearch=escapeHTML(editor.searchedString);var escReplace=escapeHTML(editor.replacementString);if(!editor.searchedString||!editor.replacementString){message_box.html('<div class="alert alert-warning" style="text-align: left">
1620'+'<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>'+' <strong>'+editor.selectedLanguage.warning+'</strong> '+
1621editor.selectedLanguage.please_fill_both_fields+'</div>').slideDown();setTimeout(function(){message_box.slideUp();},6000);return;}
1622if(!text){message_box.html('<div class="alert alert-warning" style="text-align: left">'+'<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>'+' <strong>'+editor.selectedLanguage.warning+'</strong> '+
1623editor.selectedLanguage.text_is_empty_cant_start_searching_process+'</div>').slideDown();setTimeout(function(){message_box.slideUp();},6000);return;}
1624var present=new RegExp(escapeRegExp(editor.searchedString),'i').test(text);if(!present){message_box.html('<div class="alert alert-warning" style="text-align: left">'+'<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>'+' <strong>'+editor.selectedLanguage.warning+'</strong> '+
1625editor.selectedLanguage.coincidence_text_1+' "'+escSearch+'" '+
1626editor.selectedLanguage.coincidence_text_2+'</div>').slideDown();setTimeout(function(){message_box.slideUp();},6000);return;}
1627editor.wholeWords=$('#whole_words').prop('checked');$('#find-and-replace-modal').modal('hide');editor.firstText='';editor.secondText=text;if($('#replace_all').prop('checked')){editor.findAndReplaceAll();}else{editor.findAndReplaceOneAndOne();}};Editor.prototype.findAndReplaceOneAndOne=function(){var re,secondPos;var needle=_escapeRegExpForFind(editor.searchedString);if(editor.wholeWords){re=new RegExp("(?:^|\\W)("+needle+")(?=\\W|$)","gi");secondPos=editor.secondText.search(re);editor.replacementPos=editor.firstText.length+secondPos+1;}else{re=new RegExp(needle,"gi");secondPos=editor.secondText.search(re);editor.replacementPos=editor.firstText.length+secondPos;}
1628if(secondPos!=-1){editor.setCaretToPos(editor.node_for_box,editor.replacementPos);setTimeout(function(){var safeSearch=escapeHTML(editor.searchedString);var safeReplace=escapeHTML(editor.replacementString);$('#replace_container').find('p').html(editor.selectedLanguage.are_you_sure_you_want_to_replace+' "'+safeSearch+'" '+
1629editor.selectedLanguage.replace_with+' "'+safeReplace+'" '+
1630editor.selectedLanguage.replace_at+' "'+editor.replacementPos+'" '+
1631editor.selectedLanguage.replace_position);$('#replace_container').show();editor.box.blur();editor.box.trigger('keypress');editor.setSelectionRange(editor.node_for_box,editor.replacementPos,editor.replacementPos+editor.searchedString.length);},400);}};Editor.prototype.replaceOneByOne=function(){var secondPos=editor.replacementPos-editor.firstText.length;editor.setSelectionRange(editor.node_for_box,editor.replacementPos,editor.replacementPos+editor.searchedString.length);if('WebkitAppearance'in document.documentElement.style){editor.insertTextAtSelection(editor.replacementString);}
1632else{editor.box.selection('replace',{text:editor.replacementString});}
1633editor.firstText=editor.firstText+editor.secondText.slice(0,secondPos)+editor.replacementString;editor.secondText=editor.secondText.slice(secondPos+editor.searchedString.length);editor.findAndReplaceOneAndOne();$('#replace_container').hide();};Editor.prototype.cancelOne=function(){var secondPos=editor.replacementPos-editor.firstText.length;editor.firstText=editor.firstText+editor.secondText.slice(0,secondPos+editor.searchedString.length);editor.secondText=editor.secondText.slice(secondPos+editor.searchedString.length);editor.findAndReplaceOneAndOne();$('#replace_container').hide();};Editor.prototype.cancelAll=function(){this.searchedString='';this.replacementString='';this.replacementPos=0;this.firstText='';this.secondText='';this.wholeWords=false;$('#replace_container').hide();};Editor.prototype.findAndReplaceAll=function(){var re,secondPos;var needle=_escapeRegExpForFind(editor.searchedString);if(editor.wholeWords){re=new RegExp("(?:^|\\W)("+needle+")(?=\\W|$)","gi");secondPos=editor.secondText.search(re);editor.replacementPos=editor.firstText.length+secondPos+1;}else{re=new RegExp(needle,"gi");secondPos=editor.secondText.search(re);editor.replacementPos=editor.firstText.length+secondPos;}
1634if(secondPos!=-1){editor.setSelectionRange(editor.node_for_box,editor.replacementPos,editor.replacementPos+editor.searchedString.length);if('WebkitAppearance'in document.documentElement.style){editor.insertTextAtSelection(editor.replacementString);}
1635else{editor.box.selection('replace',{text:editor.replacementString});}
1636editor.firstText=editor.firstText+editor.secondText.slice(0,secondPos)+editor.replacementString;editor.secondText=editor.secondText.slice(secondPos+editor.searchedString.length);editor.findAndReplaceAll();}};window.isMobile=window.matchMedia("only screen and (max-width: 820px)").matches;function wcLsGet(key){try{return localStorage.getItem(key);}catch(_){return null;}}
1637function wcLsSet(key,value){try{localStorage.setItem(key,value);}catch(_){}}
1638function wcLsRemove(key){try{localStorage.removeItem(key);}catch(_){}}
1639function wcGlySetHidden(items,hidden){var $items=$(items);if(!$items.length)return;if(hidden){$items.addClass('wc-gly-hidden').attr('aria-hidden','true').hide();}else{$items.removeClass('wc-gly-hidden').removeAttr('aria-hidden').show();}}
1640function wcGlyClearCtas(){wcGlySetHidden($('#gly-cta-1, #gly-cta-2').empty(),true);}
1641function wcGlyShowIfNotEmpty(selector){var $el=$(selector);if(!$el.length)return;if($.trim($el.html()||'')===''){wcGlySetHidden($el,true);}else{wcGlySetHidden($el,false);}}
1642var glyManual=function(){return wcLsGet('glyConfirmed')==='true';};function hasGlyOnEditor(){try{var el=document.getElementById('box');if(!el)return false;var attrs=el.attributes;for(var i=0;i<attrs.length;i++){if(/^data-grammarly/i.test(attrs[i].name)){return true;}}
1643var wrapper=document.getElementById('form')||el.parentNode;if(wrapper){if(wrapper.querySelector('[data-grammarly-shadow-root]'))return true;if(wrapper.querySelector('.gr-top-z-index'))return true;if(wrapper.querySelector('grammarly-extension'))return true;if(wrapper.querySelector('grammarly-ghost'))return true;}}catch(e){}
1644return false;}
1645function IsGrammarlyEnabled(){return hasGlyOnEditor()||glyManual();}
1646function wcGlyIsEnabled(){try{return(typeof IsGrammarlyEnabled==='function')&&IsGrammarlyEnabled();}catch(_){return false;}}
1647var glyState={attached:null,manual:null,enabled:null,suppressQuestion:false};function syncGlyUIState(reason){var enabled=wcGlyIsEnabled();var $statusText=$('#gly_status_text');var $statusOptions=$('#gly_status_options');var $question=$('#gly_ques');var $suggest=$('#suggest_gly');if(enabled){wcGlySetHidden($question.add($suggest),true);wcGlyClearCtas();$('#grammarlyOFF, #glya').hide();$('#grammarlyON, #glyb').show();if($statusOptions.is(':visible')&&reason!=='status-yes'){wcGlySetHidden($statusText,true);
1647wcGlySetHidden($statusOptions,false);}else{wcGlySetHidden($statusOptions,true);wcGlySetHidden($statusText,false);}}else{wcGlySetHidden($statusText.add($statusOptions),true);$('#grammarlyON, #glyb').hide();$('#grammarlyOFF, #glya').show();var $longTextCta=$('#gly-cta-2');var hasLongTextCta=$.trim($longTextCta.html()||'')!=='';var longTextCtaShouldWin=reason==='display-count'&&hasLongTextCta&&$question.is(':visible')&&!$suggest.is(':visible');if(longTextCtaShouldWin){wcGlySetHidden($question,true);}
1648if($question.is(':visible')||$suggest.is(':visible')){wcGlySetHidden($longTextCta,true);}else{wcGlyShowIfNotEmpty('#gly-cta-2');}
1649wcGlyShowIfNotEmpty('#gly-cta-1');}
1650$('body').addClass('wc-gly-ready');}
1651function glyQuesDisplay(force){if(wcGlyIsEnabled()){syncGlyUIState('question-blocked-enabled');return;}
1652var visibleFn=(typeof isQuestionOrSuggestVisible==='function')?isQuestionOrSuggestVisible:function(){return false;};wcGlySetHidden($('#gly_status_text, #gly_status_options'),true);wcGlySetHidden($('#gly-cta-2'),true);if(force||!visibleFn()){glyState.suppressQuestion=false;wcGlySetHidden($('#suggest_gly'),true);wcGlySetHidden($('#gly_ques'),false);}
1653syncGlyUIState('question');}
1654function refreshGlyState(force){var attached=hasGlyOnEditor();var manual=glyManual();var enabled=attached||manual;var changed=force===true||attached!==glyState.attached||manual!==glyState.manual||enabled!==glyState.enabled;glyState.attached=attached;glyState.manual=manual;glyState.enabled=enabled;syncGlyUIState('refresh');if(!enabled&&changed&&!glyState.suppressQuestion&&!isQuestionOrSuggestVisible()){glyQuesDisplay(true);}}
1655$(document).ready(function(){$('#gly_yes').off('click.wcGly').on('click.wcGly',function(){wcLsSet('text',$('#box').val());wcLsSet('glyConfirmed','true');glyState.suppressQuestion=false;syncGlyUIState('gly-yes');location.reload();});$('#gly_no').off('click.wcGly').on('click.wcGly',function(){wcGlySetHidden($('#gly_ques'),true);wcGlySetHidden($('#suggest_gly'),false);wcLsRemove('wc_hideProModalForGly');wcLsRemove('wc_hasGrammarlyPro');syncGlyUIState('gly-no');});$('#gly_get_now').off('click.wcGly').on('click.wcGly',function(e){e.preventDefault();wcGlySetHidden($('#suggest_gly'),true);var link=document.createElement('a');link.href='https://wordcounter.net/track/enable';link.target='_blank';link.rel='nofollow';document.body.appendChild(link);link.click();document.body.removeChild(link);glyQuesDisplay(true);});$('#gly_no_thanks').off('click.wcGly').on('click.wcGly',function(e){e.preventDefault();e.stopPropagation();glyState.suppressQuestion=true;wcGlySetHidden($('#gly_ques, #suggest_gly'),true);syncGlyUIState('gly-no-thanks');});$('#gly_status_text').off('click.wcGly').on('click.wcGly',function(){if(!wcGlyIsEnabled()){syncGlyUIState('status-click-disabled');return;}
1656wcGlySetHidden($('#gly_ques, #suggest_gly'),true);wcGlyClearCtas();wcGlySetHidden($(this),true);wcGlySetHidden($('#gly_status_options'),false);});$('#yes_option').off('click.wcGly').on('click.wcGly',function(){wcGlySetHidden($('#gly_status_options'),true);wcGlySetHidden($('#gly_status_text'),false);syncGlyUIState('status-yes');});$('#no_option').off('click.wcGly').on('click.wcGly',function(){glyState.suppressQuestion=true;wcLsRemove('glyConfirmed');wcLsRemove('wc_hideProModalForGly');wcLsRemove('wc_hasGrammarlyPro');wcGlySetHidden($('#gly_status_options, #gly_status_text'),true);refreshGlyState(true);});refreshGlyState(true);});const WC_GLY_MODAL_MAX_PER_SESSION=1;const WC_GLY_MODAL_SESSION_KEY='wc_gly_confirm_shown_count';const WC_TC_PRO_CONFIRMED_KEY='wc_hideProModalForGly';const WC_TC_PRO_CONFIRMED_ALT_KEY='wc_hasGrammarlyPro';function wcTcHasConfirmedPro(){try{return localStorage.getItem(WC_TC_PRO_CONFIRMED_KEY)==='true'||localStorage.getItem(WC_TC_PRO_CONFIRMED_ALT_KEY)==='true';}catch(_){return false;}}
1657function wcTcSetConfirmedPro(){try{localStorage.setItem(WC_TC_PRO_CONFIRMED_KEY,'true');}catch(_){}
1658try{localStorage.setItem(WC_TC_PRO_CONFIRMED_ALT_KEY,'true');}catch(_){}
1659try{localStorage.setItem('glyConfirmed','true');}catch(_){}
1660try{if(typeof window.HideGrammarlyOFFIndicator==='function')window.HideGrammarlyOFFIndicator();}catch(_){}
1661try{if(typeof window.refreshGlyState==='function')window.refreshGlyState();}catch(_){}}
1662function wcTcProUpgradeButtonHtml(){return'Get Pro';}
1663window.wcTcHasConfirmedPro=wcTcHasConfirmedPro;window.wcTcSetConfirmedPro=wcTcSetConfirmedPro;function wcTcRefreshEditorBackdrop(){try{if(typeof window.wcTcScheduleBackdropRefresh==='function'){window.wcTcScheduleBackdropRefresh();}else if(typeof window.wcTcRefreshTextCheckBackdrop==='function'){window.wcTcRefreshTextCheckBackdrop();}}catch(_){}}
1664function wcMountOverlayIntoEditor(){var $overlay=$('#wc-tc-overlay');if(!$overlay.length)return;var $editorContainer=$('.resizable-textarea');if(!$editorContainer.length)return;if($editorContainer.css('position')==='static'){$editorContainer.css('position','relative');}
1665$editorContainer.append($overlay);}
1666function wcEnsureSharedConfirmOverlay(){var $overlay=$('#wc-tc-overlay');
1666if(!$overlay.length){var html=''+'<div id="wc-tc-overlay" aria-hidden="true">'+'<div class="wc-confirm-bg" aria-hidden="true"><div class="wc-confirm-simulated"></div></div>'+'<div class="wc-confirm-card">'+'<h3 id="wc-confirm-title"></h3>'+'<p id="wc-confirm-text"></p>'+'<div class="wc-confirm-actions" id="wc-confirm-btns"></div>'+'</div>'+'</div>';$('body').append(html);$overlay=$('#wc-tc-overlay');}else if(!$overlay.children('.wc-confirm-bg').length){$overlay.prepend('<div class="wc-confirm-bg" aria-hidden="true"><div class="wc-confirm-simulated"></div></div>');}
1667wcMountOverlayIntoEditor();return $overlay;}
1668function wcCanShowGlyConfirmThisSession(){try{const n=parseInt(sessionStorage.getItem(WC_GLY_MODAL_SESSION_KEY)||'0',10);return n<WC_GLY_MODAL_MAX_PER_SESSION;}catch(_){return true;}}
1669function wcMarkGlyConfirmShown(){try{const n=parseInt(sessionStorage.getItem(WC_GLY_MODAL_SESSION_KEY)||'0',10);sessionStorage.setItem(WC_GLY_MODAL_SESSION_KEY,String(n+1));}catch(_){}}
1670function wcShowConfirmOverlay(){wcEnsureSharedConfirmOverlay();const overlay=document.getElementById('wc-tc-overlay');if(!overlay)return;overlay.style.display='flex';overlay.setAttribute('aria-hidden','false');try{wcTcRefreshEditorBackdrop();}catch(_){}
1671setTimeout(()=>overlay.classList.add('active'),10);}
1672function wcHideConfirmOverlay(){const overlay=document.getElementById('wc-tc-overlay');if(!overlay)return;overlay.classList.remove('active');overlay.style.display='none';overlay.setAttribute('aria-hidden','true');}
1673function wcSetConfirmCard(titleHtml,bodyHtml,buttonsHtml){wcEnsureSharedConfirmOverlay();const title=document.getElementById('wc-confirm-title');const desc=document.getElementById('wc-confirm-text');const btns=document.getElementById('wc-confirm-btns');if(title)title.innerHTML=titleHtml||'';if(desc)desc.innerHTML=bodyHtml||'';if(btns)btns.innerHTML=buttonsHtml||'';}
1674function wcGetSharedInstallConfirmCopy(){var count=null;var source='';try{source=sessionStorage.getItem('wc_tc_pending_source')||sessionStorage.getItem('wc_pending_source')||'';}catch(_){}
1675if(source==='fix-now'){try{if(typeof window._wcTcLastIssueCount==='number'&&Number.isFinite(window._wcTcLastIssueCount)){count=window._wcTcLastIssueCount;}else{var stored=sessionStorage.getItem('wc_tc_last_issue_count');if(stored!==null&&stored!==''){var parsed=Number(stored);if(Number.isFinite(parsed))count=parsed;}}}catch(_){}}
1676if(count!==null)count=Math.max(0,Math.floor(count));if(count===1){return{firstDesc:'It helps you fix that writing issue in seconds.',secondTitle:'Grammarly unlocks your correction'};}
1677if(count>1){return{firstDesc:'It helps you fix these <span style="font-weight:bold;">'+count+' writing issues</span> in seconds.',secondTitle:'Grammarly unlocks your '+count+' corrections'};}
1678return{firstDesc:'It helps you fix tricky writing issues in seconds.',secondTitle:'Grammarly unlocks advanced corrections'};}
1679window.wcGetSharedInstallConfirmCopy=wcGetSharedInstallConfirmCopy;window.wcConfirmShow=function(){var copy=wcGetSharedInstallConfirmCopy();wcSetConfirmCard('Do you have Grammarly installed?',copy.firstDesc,`
1680      <button type="button" class="wc-btn-action wc-btn-primary" onclick="window.wcConfirmYes()">Yes, I have it</button>
1681      <button type="button" class="wc-btn-action wc-btn-secondary" onclick="window.wcConfirmNo()">No, I don’t</button>
1682    `);wcShowConfirmOverlay();};window.wcConfirmYes=function(){try{wcHideConfirmOverlay();}catch(_){}
1683try{localStorage.setItem('glyConfirmed','true');}catch(_){}
1684try{if(typeof window.HideGrammarlyOFFIndicator==='function')window.HideGrammarlyOFFIndicator();}catch(_){}
1685setTimeout(function(){try{window.wcShowProModal('flow');}catch(_){}},0);};window.wcConfirmNo=function(){var copy=wcGetSharedInstallConfirmCopy();try{localStorage.removeItem('wc_hideProModalForGly');}catch(_){}
1686try{localStorage.removeItem('wc_hasGrammarlyPro');}catch(_){}
1687wcSetConfirmCard(copy.secondTitle,'It\'s free and you can uninstall anytime.',`
1688      <button type="button" class="wc-btn-action wc-btn-primary" onclick="window.wcGetItNow()">Get it now</button>
1689      <button type="button" class="wc-btn-action wc-btn-secondary" onclick="window.wcCloseConfirmModal()">Not now</button>
1690    `);wcShowConfirmOverlay();};window.wcInstallReturnPrompt=window.wcInstallReturnPrompt||(function(){var bound={};var fallbackTimers={};var DEFAULT_MIN_AGE_MS=250;var DEFAULT_FALLBACK_DELAY_MS=500;function now(){return Date.now?Date.now():(new Date()).getTime();}
1691function mark(key){try{localStorage.setItem(key,String(now()));}catch(_){}}
1692function clear(key){try{localStorage.removeItem(key);}catch(_){}}
1693function readStamp(key){var value=null;try{value=localStorage.getItem(key);}catch(_){}
1694if(!value)return null;if(value==='1')return 0;var parsed=parseInt(value,10);return isNaN(parsed)?0:parsed;}
1695function isReady(key,minAgeMs){var stamp=readStamp(key);if(stamp===null)return false;if(stamp===0)return true;return(now()-stamp)>=(minAgeMs||DEFAULT_MIN_AGE_MS);}
1696function run(key){var item=bound[key];if(!item||!isReady(key,item.options.minAgeMs))return;clear(key);try{item.showFn();}catch(_){}}
1697function queueRun(key,delayMs){setTimeout(function(){run(key);},delayMs||0);}
1698function bindKey(key){var handler=function(){queueRun(key,0);};window.addEventListener('focus',handler);window.addEventListener('pageshow',handler);document.addEventListener('visibilitychange',function(){if(!document.hidden)handler();});document.addEventListener('webkitvisibilitychange',function(){if(!document.webkitHidden)handler();});document.addEventListener('touchend',handler,true);document.addEventListener('pointerdown',handler,true);document.addEventListener('click',handler,true);}
1699function watch(key,showFn,options){if(!key||typeof showFn!=='function')return;options=options||{};
1699if(!bound[key]){bound[key]={showFn:showFn,options:options};bindKey(key);}else{bound[key].showFn=showFn;bound[key].options=options;}
1700clearTimeout(fallbackTimers[key]);if(options.disableFallback!==true){fallbackTimers[key]=setTimeout(function(){run(key);},options.fallbackDelayMs||DEFAULT_FALLBACK_DELAY_MS);}}
1701return{mark:mark,watch:watch,run:run,clear:clear};})();const WC_PRO_UPGRADE_RETURN_KEY='wc_pro_upgrade_pending';let wcProReturnCueTimer=null;function wcClearProUpgradeReturnCue(){try{const helper=window.wcInstallReturnPrompt;if(helper&&typeof helper.clear==='function'){helper.clear(WC_PRO_UPGRADE_RETURN_KEY);}else{localStorage.removeItem(WC_PRO_UPGRADE_RETURN_KEY);}}catch(_){}}
1702function wcIsFullProUpsellOpen(){const overlay=document.getElementById('wc-tc-overlay');return!!(overlay&&overlay.classList.contains('active')&&overlay.style.display!=='none'&&document.getElementById('wc-hide-pro-next')&&document.querySelector('#wc-confirm-text .wc-pro-benefits-animate'));}
1703function wcCueExistingProControl(){if(!wcIsFullProUpsellOpen())return;const checkbox=document.getElementById('wc-hide-pro-next');const label=document.querySelector('.wc-pro-existing-label');if(!checkbox||!label||checkbox.checked)return;label.classList.remove('is-return-cued');void label.offsetWidth;label.classList.add('is-return-cued');clearTimeout(wcProReturnCueTimer);wcProReturnCueTimer=setTimeout(function(){label.classList.remove('is-return-cued');},1850);}
1704function wcArmProUpgradeReturnCue(){try{const helper=window.wcInstallReturnPrompt;if(!helper||typeof helper.mark!=='function'||typeof helper.watch!=='function'){return;}
1705helper.mark(WC_PRO_UPGRADE_RETURN_KEY);helper.watch(WC_PRO_UPGRADE_RETURN_KEY,wcCueExistingProControl,{disableFallback:true,minAgeMs:500});}catch(_){}}
1706window.wcGetItNow=function(){try{window.wcInstallReturnPrompt.mark('wc_pending');}catch(_){}
1707try{window.wcInstallReturnPrompt.watch('wc_pending',function(){if(typeof window.wcConfirmShow==='function')window.wcConfirmShow();});}catch(_){}
1708const win=window.open('/track/enable','_blank','noopener');if(win)win.opener=null;window.wcCloseConfirmModal();};window.wcCloseConfirmModal=function(){wcHideConfirmOverlay();};window.wcShowProModal=function(source){window._wcTcProSource='g1';try{const hide=localStorage.getItem('wc_hideProModalForGly')==='true';if(hide){wcHideConfirmOverlay();try{if(typeof window.wcTcClearStoredIssueCount==='function')window.wcTcClearStoredIssueCount();}catch(_){}
1709try{if(typeof window.wcTcClearStoredIssues==='function')window.wcTcClearStoredIssues();}catch(_){}
1710try{wcTcRefreshEditorBackdrop();}catch(_){}
1711return;}}catch(_){}
1712const extra=`
1713    <div class="wc-pro-existing-row">
1714      <label class="wc-pro-existing-label" for="wc-hide-pro-next">
1715        <input type="checkbox" id="wc-hide-pro-next"><span>I already have Pro</span>
1716      </label>
1717    </div>`;wcSetConfirmCard('Unlock advanced corrections in the editor',`
1718      <ul class="wc-upsell-list wc-pro-benefits-animate">
1719        <li>Eliminate the most difficult-to-spot writing mistakes</li>
1720        <li>Catch errors even the latest AI models can miss</li>
1721        <li>Reduce AI detection and plagiarism risks</li>
1722      </ul>
1723    `,`
1724      <div class="wc-pro-offer-wrap">
1725        <span class="wc-btn-label" aria-hidden="true">20% OFF TODAY</span>
1726        <button type="button" class="wc-btn-action wc-btn-primary wc-pro-cta" id="wc-upgrade-btn"><span>Get Grammarly Pro</span><span class="wc-pro-cta-arrow" aria-hidden="true">→</span></button>
1727      </div>
1728      <button type="button" class="wc-btn-action wc-btn-secondary" id="wc-notnow-btn">Not now, continue with free</button>
1729      ${extra}
1730    `);wcShowConfirmOverlay();setTimeout(function(){const up=document.getElementById('wc-upgrade-btn');const no=document.getElementById('wc-notnow-btn');if(up)up.onclick=function(){return window.wcUpgrade({preserveUpsell:true});};if(no)no.onclick=window.wcCloseProModal;const cb=document.getElementById('wc-hide-pro-next');if(cb)cb.onchange=function(){if(!cb.checked)return;cb.disabled=true;if(typeof window.wcTcSetConfirmedPro==='function'){window.wcTcSetConfirmedPro();}else{try{localStorage.setItem('wc_hideProModalForGly','true');}catch(_){}
1731try{localStorage.setItem('wc_hasGrammarlyPro','true');}catch(_){}
1732try{localStorage.setItem('glyConfirmed','true');}catch(_){}}
1733if(typeof window.wcCloseProModal==='function'){window.wcCloseProModal();}else if(typeof window.wcHideConfirmOverlay==='function'){window.wcHideConfirmOverlay();}};},0);};window.wcCloseProModal=function(){wcClearProUpgradeReturnCue();clearTimeout(wcProReturnCueTimer);wcHideConfirmOverlay();
1733try{if(typeof window.wcTcClearStoredIssueCount==='function')window.wcTcClearStoredIssueCount();}catch(_){}
1734try{if(typeof window.wcTcClearStoredIssues==='function')window.wcTcClearStoredIssues();}catch(_){}
1735try{wcTcRefreshEditorBackdrop();}catch(_){}};function wcShowSharedProAccessConfirmModal(){wcSetConfirmCard('Do you have Grammarly Pro?',"If you activated Pro or already have it, please confirm.",`
1736      <button type="button" class="wc-btn-action wc-btn-primary" id="wc-shared-pro-yes">Yes, I have Pro</button>
1737      <button type="button" class="wc-btn-action wc-btn-secondary" id="wc-shared-pro-notnow">Not now, return to editor</button>
1738    `);wcShowConfirmOverlay();setTimeout(function(){const yes=document.getElementById('wc-shared-pro-yes');const no=document.getElementById('wc-shared-pro-notnow');if(yes)yes.onclick=function(){if(typeof window.wcTcSetConfirmedPro==='function'){window.wcTcSetConfirmedPro();}else{try{localStorage.setItem('wc_hideProModalForGly','true');}catch(_){}
1739try{localStorage.setItem('wc_hasGrammarlyPro','true');}catch(_){}
1740try{localStorage.setItem('glyConfirmed','true');}catch(_){}}
1741window.wcCloseProModal();};if(no)no.onclick=window.wcCloseProModal;},0);}
1742window.wcShowSharedProAccessConfirmModal=wcShowSharedProAccessConfirmModal;window.wcUpgrade=function(options){window._wcTcProSource='g1';const preserveUpsell=!!(options&&options.preserveUpsell===true&&wcIsFullProUpsellOpen());if(preserveUpsell){wcArmProUpgradeReturnCue();}
1743const win=window.open('/track/upgrade','_blank','noopener');if(win)win.opener=null;if(preserveUpsell){return false;}
1744wcShowSharedProAccessConfirmModal();return false;};var WC_GLY_REPORT_PENDING_KEY='wc_report_pending';function wcIsMobileLike(){try{return!!(window.isMobile||(window.matchMedia&&window.matchMedia('(max-width: 820px)').matches)||(window.matchMedia&&window.matchMedia('(pointer: coarse)').matches)||(navigator.maxTouchPoints&&navigator.maxTouchPoints>0)||/Android|iPhone|iPad|iPod|Mobile/i.test(navigator.userAgent||''));}catch(_){return!!window.isMobile;}}
1745function wcIsGlyConfirmedOrEnabled(){try{if(typeof window.IsGrammarlyEnabled==='function'&&window.IsGrammarlyEnabled())return true;}catch(_){}
1746try{return localStorage.getItem('glyConfirmed')==='true';}catch(_){return false;}}
1747function wcGetTextCheckEditorText(){var text='';try{text=$('#box').val()||'';}catch(_){}
1748if(!text){try{var $final=$('.finalResult');if($final.length)text=$final.val()||$final.text()||'';}catch(_){}}
1749return text||'';}
1750function wcTextCheckAlert(){var msg='Please enter more text to start the check';try{if(typeof t==='function')msg=t('please_enter_more_text')||msg;}catch(_){}
1751alert(msg);}
1752window.wcHandleTextCheckModalFlow=function(){var isG1=wcIsGlyConfirmedOrEnabled();if(isG1){window.wcShowProModal('direct');return;}
1753if(!wcCanShowGlyConfirmThisSession()){if(typeof window.glyQuesDisplay==='function')window.glyQuesDisplay();return;}
1754wcMarkGlyConfirmShown();window.wcConfirmShow();};window.wcHandleDeepCheckModalFlow=window.wcHandleTextCheckModalFlow;var BindSubmit=function(){$('._btncheck').off('click').on('click',function(e){e.preventDefault();e.stopPropagation();try{window.scrollTo({top:0,left:0,behavior:'smooth'});$('html, body').animate({scrollTop:0},'fast');}catch(_){}
1755return false;});};var editor;$(document).ready(function(){editor=new Editor();editor.init();});var HideGrammarlyOFFIndicator=function(){syncGlyUIState('indicator');};$(document).ready(function(){if($('img.lazy').length){var lazyLoadInstance=new LazyLoad({elements_selector:".lazy",threshold:0});}
1756if(window.location.hash=='#signin'){$($('a[data-target="#social-login-modal"]').get(0)).click();}
1757$(document).off('click','.gly-green-btn').on('click','.gly-green-btn',function(){$('#glyup').modal('hide');if(typeof isQuestionOrSuggestVisible==='function'&&!isQuestionOrSuggestVisible()){wcGlySetHidden($('#suggest_gly'),true);if(typeof glyQuesDisplay==='function'){glyQuesDisplay(true);}else{$('#gly_ques').show();$('#ask_gly').show();}}});setTimeout(HideGrammarlyOFFIndicator,500);setTimeout(HideGrammarlyOFFIndicator,1000);setTimeout(HideGrammarlyOFFIndicator,5000);refreshGlyState();setInterval(function(){if(!document.hidden){refreshGlyState();}},4000);document.addEventListener('visibilitychange',function(){if(!document.hidden){refreshGlyState();}});window.addEventListener('focus',function(){refreshGlyState();});wcMountOverlayIntoEditor();});(function(){if(typeof window.jQuery==='undefined')return;var $=window.jQuery;function _t(key,fallback){return fallback;}
1758function _getCsrfParamAndToken(){var paramName=$('meta[name="csrf-param"]').attr('content')||'_csrf';var token=$('meta[name="csrf-token"]').attr('content')||'';return{param:paramName,token:token};}
1759function _csrfData(){var c=_getCsrfParamAndToken();var o={};if(c&&c.param&&c.token)o[c.param]=c.token;return o;}
1760function _joinUrl(path){var root=(typeof window.share_path!=='undefined'&&window.share_path)?window.share_path:'/';if(root.slice(-1)!=='/')root+='/';if(path.charAt(0)==='/')path=path.slice(1);return root+path;}
1761function _post(url,data){return $.ajax({type:'POST',url:url,data:$.extend({},data||{},_csrfData()),dataType:'text'});}
1762function _confirm(title,text,yesText,noText){var $ov=$('#wc-tc-overlay');var $title=$('#wc-confirm-title');var $text=$('#wc-confirm-text');var $btns=$('#wc-confirm-btns');var dfd=$.Deferred();if(!$ov.length||!$title.length||!$text.length||!$btns.length){var ok=window.confirm((title?title+"\n\n":"")+(text||""));dfd.resolve(!!ok);return dfd.promise();}
1763$title.text(title||'');$text.text(text||'');$btns.empty();var $yes=$('<button/>',{'class':'wc-btn-action wc-btn-primary',type:'button'}).text(yesText||_t('delete','Delete'));var $no=$('<button/>',{'class':'wc-btn-action wc-btn-secondary',type:'button'}).text(noText||_t('cancel','Cancel'));function close(result){$ov.removeClass('active');$(document).off('keydown.wcConfirm');dfd.resolve(result);}
1764$yes.on('click',function(){close(true);});
1764$no.on('click',function(){close(false);});$(document).on('keydown.wcConfirm',function(e){if(e.key==='Escape')close(false);if(e.key==='Enter')close(true);});$btns.append($yes,$no);$ov.addClass('active');return dfd.promise();}
1765function _decorateSoon(){if(window.editor&&typeof window.editor._wcDecorateRevisionsList==='function'){try{window.editor._wcDecorateRevisionsList();}catch(e){}}}
1766function _inferRevisionId($a){var rid=$a.data('revision-id')||$a.attr('data-revision-id');if(rid)return rid;var onclick=$a.attr('onclick')||'';var m=onclick.match(/sendRevision\(['"]?(\d+)['"]?\)/i);if(m&&m[1])return m[1];var href=$a.attr('href')||'';m=href.match(/revision[_-]?id=(\d+)/i);if(m&&m[1])return m[1];return null;}
1767if(typeof Editor!=='undefined'){Editor.prototype._wcDecorateRevisionsList=function(){var $ul=$('#revisions_ul');if(!$ul.length)return;$ul.find('a.wc-revision-del').remove();$ul.find('.wc-revision-divider, .wc-revision-clear-li').remove();$ul.children('li').each(function(){var $li=$(this);var $a=$li.children('a.revision_link').first();if(!$a.length)$a=$li.find('a').first();if(!$a.length)return;if($a.hasClass('wc-revision-del')||$a.hasClass('wc-revision-clear-all'))return;var revId=_inferRevisionId($a);if(!revId)return;$a.attr('data-revision-id',revId);$li.addClass('wc-revision-row');if(!$a.hasClass('wc-revision-load'))$a.addClass('wc-revision-load');if($li.children('a.wc-revision-del').length)return;var label=(($a.text()||'').replace(/\s+/g,' ').trim());var delTitle=label?(_t('delete','Delete')+': '+label):_t('delete','Delete');var $del=$('<a/>',{href:'#','class':'wc-revision-del','data-revision-id':revId,title:delTitle,'aria-label':delTitle}).text('×');$li.append($del);});var nRevs=$ul.find('a.revision_link[data-revision-id], a.wc-revision-load[data-revision-id]').not('.wc-revision-del, .wc-revision-clear-all').length;if(nRevs===0){$ul.addClass('wc-revisions-empty');$('#revisions-btn').closest('.btn-group').removeClass('open');return;}
1768$ul.removeClass('wc-revisions-empty');$ul.append('<li role="separator" class="divider wc-revision-divider"></li>');$ul.append($('<li/>',{'class':'wc-revision-clear-li'}).append($('<a/>',{href:'#','class':'wc-revision-clear-all'}).text(_t('clear','Clear all revisions'))));};Editor.prototype._wcRefreshRevisionsList=function(){return $.ajax({type:'POST',url:'site/get-revisions',data:_csrfData(),dataType:'text'}).done(function(html){$('#revisions_ul').empty().append(html);}).always(function(){setTimeout(_decorateSoon,0);});};Editor.prototype._wcDeleteRevision=function(revId){if(!revId)return $.Deferred().reject('missing id').promise();return _post('site/delete-revision',{revision_id:revId});};Editor.prototype._wcClearAllRevisions=function(){return _post('site/clear-revisions',{});};}
1769$(function(){_decorateSoon();setTimeout(_decorateSoon,200);});$(document).off('ajaxComplete.wcRevisions').on('ajaxComplete.wcRevisions',function(evt,xhr,settings){if(!settings||!settings.url)return;var url=String(settings.url);if(url.indexOf('get-revisions')!==-1){setTimeout(_decorateSoon,0);}});$(document).off('show.bs.dropdown.wcRevisions').on('show.bs.dropdown.wcRevisions','.btn-group',function(e){var $btn=$(this).find('#revisions-btn');if(!$btn.length)return;if(typeof window.user_id_for_goal==='undefined')return;if($btn.attr('data-toggle')!=='dropdown')return;var $ul=$('#revisions_ul');var hasRevs=$ul.find('a.revision_link[data-revision-id], a.wc-revision-load[data-revision-id]').not('.wc-revision-del, .wc-revision-clear-all').length>0;if(!hasRevs){$ul.addClass('wc-revisions-empty');e.preventDefault();e.stopPropagation();$(this).removeClass('open');}});jQuery(function($){var guardKey='__wcCsrfAutoReloaded';var draftKey='__wcDraft';function hasEditorBox(){return!!document.getElementById('box');}
1770function canUseStorage(kind){try{var s=(kind==='session')?window.sessionStorage:window.localStorage;if(!s)return false;var k='__wc_test_'+kind;s.setItem(k,'1');s.removeItem(k);return true;}catch(e){return false;}}
1771function alreadyReloaded(){try{if(window.location.href.indexOf('_csrf_refresh=')!==-1)return true;}catch(e){}
1772if(!canUseStorage('session'))return false;try{return sessionStorage.getItem(guardKey)==='1';}catch(e){return false;}}
1773function markReloaded(){if(!canUseStorage('session'))return;try{sessionStorage.setItem(guardKey,'1');}catch(e){}}
1774function snapshotEditorText(){try{if(!hasEditorBox())return;var txt='';if(window.editor&&editor.box&&typeof editor.box.val==='function'){txt=editor.box.val()||'';}else{var el=document.getElementById('box');txt=el?(el.value||''):'';}
1775if(typeof txt==='string'&&txt.length){if(canUseStorage('local')){try{localStorage.setItem('text',txt);}catch(e){}}
1776if(canUseStorage('session')){try{sessionStorage.setItem(draftKey,txt);}catch(e){}}}}catch(e){}}
1777(function restoreDraftIfNeeded(){try{if(!hasEditorBox()||!canUseStorage('session'))return;if(sessionStorage.getItem(guardKey)!=='1')return;var draft=sessionStorage.getItem(draftKey);if(!draft)return;var box=document.getElementById('box');if(box&&!box.value){box.value=draft;if(window.editor&&editor.box&&typeof editor.box.val==='function'){editor.box.val(draft);}}
1778sessionStorage.removeItem(draftKey);}catch(e){}})();$(document).off('ajaxError.wcCsrfRecover').on('ajaxError.wcCsrfRecover',function(event,jqXHR,ajaxSettings){try{if(!jqXHR||jqXHR.status!==400)return;var rt=(typeof jqXHR.responseText==='string')?jqXHR.responseText:'';if(rt.indexOf('Unable to verify your data submission')===-1)return;var method=(ajaxSettings&&ajaxSettings.type?String(ajaxSettings.type):'').toUpperCase();if(method&&['POST','PUT','PATCH','DELETE'].indexOf(method)===-1)return;if(!hasEditorBox())return;var reqUrl=(ajaxSettings&&ajaxSettings.url)?String(ajaxSettings.url):'';if(reqUrl&&!/(^|\/)site\/(save-revision|get-revisions|delete-revision|clear-revisions|log)\b/.test(reqUrl)){return;}
1779if(alreadyReloaded())return;if(!canUseStorage('local')&&!canUseStorage('session')){return;}
1780snapshotEditorText();markReloaded();var page=window.location.href.split('#')[0];var sep=(page.indexOf('?')===-1)?'?':'&';window.location.replace(page+sep+'_csrf_refresh='+Date.now());}catch(e){}});(function cleanUrl(){try{if(!canUseStorage('session'))return;if(sessionStorage.getItem(guardKey)!=='1')return;if(!window.URL||!window.history||!history.replaceState)return;var u=new URL(window.location.href);if(u.searchParams&&u.searchParams.has('_csrf_refresh')){u.searchParams.delete('_csrf_refresh');history.replaceState(null,'',u.toString());}}catch(e){}})();});$(document).off('click.wcRevisionDelete','#revisions_ul .wc-revision-del').on('click.wcRevisionDelete','#revisions_ul .wc-revision-del',function(e){e.preventDefault();e.stopPropagation();if(!window.editor||typeof window.editor._wcDeleteRevision!=='function')return;var $a=$(this);var revId=$a.data('revision-id')||$a.attr('data-revision-id');var label=($a.attr('title')||'').replace(/^Delete:\s*/i,'').trim();_confirm(_t('delete','Delete revision?'),label?('Delete this revision?\n\n'+label):'Delete this revision?',_t('delete','Delete'),_t('cancel','Cancel')).done(function(ok){if(!ok)return;window.editor._wcDeleteRevision(revId).done(function(resp){var okResp=false;try{var json=JSON.parse(resp);okResp=!!(json&&(json.success===true||json.success===1));}catch(err){okResp=(String(resp).trim()==='1'||String(resp).trim().toLowerCase()==='true');}
1781if(okResp){if(typeof window.editor._wcRefreshRevisionsList==='function'){window.editor._wcRefreshRevisionsList();}else{$a.closest('li').remove();_decorateSoon();}}});});});$(document).off('click.wcRevisionClearAll','#revisions_ul .wc-revision-clear-all').on('click.wcRevisionClearAll','#revisions_ul .wc-revision-clear-all',function(e){e.preventDefault();e.stopPropagation();if(!window.editor||typeof window.editor._wcClearAllRevisions!=='function')return;_confirm(_t('clear','Clear all revisions?'),_t('clear_confirm','This will permanently delete all saved revisions for this document.'),_t('clear','Clear'),_t('cancel','Cancel')).done(function(ok){if(!ok)return;window.editor._wcClearAllRevisions().done(function(resp){var okResp=false;try{var json=JSON.parse(resp);okResp=!!(json&&(json.success===true||json.success===1));}catch(err){okResp=(String(resp).trim()==='1'||String(resp).trim().toLowerCase()==='true');}
1782if(okResp){if(typeof window.editor._wcRefreshRevisionsList==='function'){window.editor._wcRefreshRevisionsList();}else{$('#revisions_ul').empty().addClass('wc-revisions-empty');$('#revisions-btn').closest('.btn-group').removeClass('open');}}});});});})();(function(){'use strict';var API_TC_BASE='https://api.wordcounter.net';var MAX_CHARS_TC=25000;var WC_TC_BACKDROP_TEASE_MS=1000;var WC_TC_PENDING_INSTALL_KEY='wc_tc_pending';var WC_TC_PENDING_SOURCE_KEY='wc_tc_pending_source';var WC_TC_LAST_ISSUE_COUNT_KEY='wc_tc_last_issue_count';var WC_TC_LAST_ISSUES_KEY='wc_tc_last_issues';var WC_TC_LAST_HIGHLIGHTS_KEY='wc_tc_last_highlights';var WC_TC_CATEGORIES=[{key:'grammar',label:'Checking grammar...'},{key:'spelling',label:'Checking spelling...'},{key:'punctuation',label:'Reviewing punctuation...'},{key:'word_choice',label:'Analyzing word choice...'},{key:'readability',label:'Verifying readability...'},{key:'clarity',label:'Looking for clarity issues...'}];var WC_TC_PRO_CATEGORIES=[{key:'ai_generated',label:'Checking AI-detection risk...'},{key:'plagiarism',label:'Checking plagiarism risk...'},{key:'sentence_structure',label:'Analyzing sentence structures...'},{key:'overused_words',label:'Looking for overused words...'},{key:'tone_adjustments',label:'Looking for tone adjustments...'},{key:'tense_shifts',label:'Verifying tense shifts...'}];var WC_TC_STATUS_TEXTS=WC_TC_CATEGORIES.map(function(item){return item.label;});
1782window._wcTcMode='standard';function wcTcGetActiveCategories(){return window._wcTcMode==='pro'?WC_TC_PRO_CATEGORIES:WC_TC_CATEGORIES;}
1783function wcTcSetMode(mode){window._wcTcMode=mode==='pro'?'pro':'standard';return window._wcTcMode;}
1784window._wcTcActive=false;window._wcTcOriginalHeight=null;window._wcTcAbortController=null;window._wcTcReqId=null;window._wcTcApiDone=false;window._wcTcSeqDone=false;window._wcTcApiData=null;window._wcTcApiStatus='pending';window._wcTcError=false;window._wcTcLoadingTimers=[];window._wcTcLastIssueCount=null;window._wcTcLastIssues=[];window._wcTcLastHighlights={};window._wcTcPendingSource='';window._wcTcProSource='';function wcGetEditorText(){var text='';try{text=$('#box').val()||'';}catch(_){}
1785if(!text){try{var $final=$('.finalResult');if($final.length)text=$final.val()||$final.text()||'';}catch(_){}}
1786return text||'';}
1787function wcTcSetPendingSource(source){source=source||'';window._wcTcPendingSource=source;try{if(source)sessionStorage.setItem(WC_TC_PENDING_SOURCE_KEY,source);else sessionStorage.removeItem(WC_TC_PENDING_SOURCE_KEY);}catch(_){}}
1788function wcTcGetPendingSource(){if(window._wcTcPendingSource)return window._wcTcPendingSource;try{return sessionStorage.getItem(WC_TC_PENDING_SOURCE_KEY)||'';}catch(_){return'';}}
1789function wcTcClearPendingSource(){wcTcSetPendingSource('');}
1790function wcTcStoreIssueCount(count){var num=Number(count);if(!Number.isFinite(num))return null;num=Math.max(0,Math.floor(num));window._wcTcLastIssueCount=num;try{sessionStorage.setItem(WC_TC_LAST_ISSUE_COUNT_KEY,String(num));}catch(_){}
1791return num;}
1792function wcTcGetStoredIssueCount(){var count=null;if(typeof window._wcTcLastIssueCount==='number'&&Number.isFinite(window._wcTcLastIssueCount)){count=window._wcTcLastIssueCount;}else{try{var stored=sessionStorage.getItem(WC_TC_LAST_ISSUE_COUNT_KEY);if(stored!==null&&stored!==''){var parsed=Number(stored);if(Number.isFinite(parsed))count=parsed;}}catch(_){}}
1793if(count===null)return null;count=Math.max(0,Math.floor(count));return Number.isFinite(count)?count:null;}
1794function wcTcClearStoredIssueCount(){window._wcTcLastIssueCount=null;try{sessionStorage.removeItem(WC_TC_LAST_ISSUE_COUNT_KEY);}catch(_){}}
1795window.wcTcClearStoredIssueCount=wcTcClearStoredIssueCount;function wcTcNormalizeCategory(category){var raw=String(category||'').trim().toLowerCase();if(raw==='word choice'||raw==='word-choice')return'word_choice';if(raw==='conciseness'||raw==='style'||raw==='clarity issue')return'clarity';if(raw==='ai'||raw==='ai_style'||raw==='ai-generated'||raw==='ai generated'||raw==='ai generated text')return'ai_generated';if(raw==='plagiarism_risk'||raw==='plagiarism risk')return'plagiarism';if(raw==='sentence structure'||raw==='sentence-structure'||raw==='structure')return'sentence_structure';if(raw==='overused words'||raw==='overused-words'||raw==='repetition')return'overused_words';if(raw==='tone'||raw==='tone adjustment'||raw==='tone-adjustments'||raw==='tone adjustments')return'tone_adjustments';if(raw==='tense'||raw==='tense shift'||raw==='tense-shifts'||raw==='tense shifts')return'tense_shifts';var all=WC_TC_CATEGORIES.concat(WC_TC_PRO_CATEGORIES);for(var i=0;i<all.length;i++){if(all[i].key===raw)return raw;}
1796return'';}
1797function wcTcNormalizeIssues(issues){if(!Array.isArray(issues))return[];var seen={};var out=[];issues.forEach(function(item){if(!item)return;var category=wcTcNormalizeCategory(item.category);var text=String(item.text||item.span||item.quote||'').replace(/\s+/g,' ').trim();if(!category||!text||text.length<2)return;var key=category+'|'+text.toLowerCase();if(seen[key])return;seen[key]=true;out.push({category:category,text:text});});return out;}
1798function wcTcNormalizeHighlights(highlights,rawText){var textLength=String(rawText||wcTcGetBackdropText()||'').length;var out={};var ranges=[];var seen={};WC_TC_CATEGORIES.concat(WC_TC_PRO_CATEGORIES).forEach(function(cat){out[cat.key]=[];});function addRange(category,start,end){category=wcTcNormalizeCategory(category);start=Number(start);end=Number(end);if(!category||!Number.isInteger(start)||!Number.isInteger(end))return;if(start<0||end<=start||end>textLength)return;if((end-start)>180)return;if(!String(rawText||wcTcGetBackdropText()||'').slice(start,end).trim())return;var key=category+'|'+start+'|'+end;if(seen[key])return;seen[key]=true;ranges.push({category:category,start:start,end:end});}
1799if(Array.isArray(highlights)){highlights.forEach(function(item){if(!item)return;if(Array.isArray(item))addRange(item[2]||item.category,item[0],item[1]);else addRange(item.category,item.start,item.end);});}else if(highlights&&typeof highlights==='object'){Object.keys(highlights).forEach(function(category){var list=highlights[category];if(!Array.isArray(list))return;list.forEach(function(range){if(Array.isArray(range))addRange(category,range[0],range[1]);else if(range&&typeof range==='object')addRange(category,range.start,range.end);});});}
1800ranges.sort(function(a,b){if(a.start!==b.start)return a.start-b.start;return a.end-b.end;});ranges.forEach(function(range){if(!out[range.category])out[range.category]=[];out[range.category].push([range.start,range.end]);});return out;}
1801function wcTcFlattenHighlights(highlights,rawText){var normalized=wcTcNormalizeHighlights(highlights,rawText);var ranges=[];Object.keys(normalized).forEach(function(category){normalized[category].forEach(function(range){ranges.push({category:category,start:range[0],end:range[1]});});});ranges.sort(function(a,b){if(a.start!==b.start)return a.start-b.start;return a.end-b.end;});return ranges;}
1802function wcTcStoreHighlights(highlights,rawText){var normalized=wcTcNormalizeHighlights(highlights,rawText);window._wcTcLastHighlights=normalized;try{sessionStorage.setItem(WC_TC_LAST_HIGHLIGHTS_KEY,JSON.stringify(normalized));}catch(_){}
1803return normalized;}
1804function wcTcGetStoredHighlights(){if(window._wcTcLastHighlights&&typeof window._wcTcLastHighlights==='object'){var hasAny=false;Object.keys(window._wcTcLastHighlights).forEach(function(key){if(Array.isArray(window._wcTcLastHighlights[key])&&window._wcTcLastHighlights[key].length)hasAny=true;});if(hasAny)return window._wcTcLastHighlights;}
1805try{var raw=sessionStorage.getItem(WC_TC_LAST_HIGHLIGHTS_KEY);if(!raw)return{};return wcTcNormalizeHighlights(JSON.parse(raw));}catch(_){return{};}}
1806function wcTcClearStoredHighlights(){window._wcTcLastHighlights={};try{sessionStorage.removeItem(WC_TC_LAST_HIGHLIGHTS_KEY);}catch(_){}}
1807window.wcTcClearStoredHighlights=wcTcClearStoredHighlights;function wcTcStoreIssues(issues){var normalized=wcTcNormalizeIssues(issues);window._wcTcLastIssues=normalized;try{sessionStorage.setItem(WC_TC_LAST_ISSUES_KEY,JSON.stringify(normalized));}catch(_){}
1808return normalized;}
1809function wcTcGetStoredIssues(){if(Array.isArray(window._wcTcLastIssues)&&window._wcTcLastIssues.length)return window._wcTcLastIssues;try{var raw=sessionStorage.getItem(WC_TC_LAST_ISSUES_KEY);if(!raw)return[];return wcTcNormalizeIssues(JSON.parse(raw));}catch(_){return[];}}
1810function wcTcClearStoredIssues(){window._wcTcLastIssues=[];window._wcTcLastHighlights={};try{sessionStorage.removeItem(WC_TC_LAST_ISSUES_KEY);}catch(_){}}
1811window.wcTcClearStoredIssues=wcTcClearStoredIssues;function wcTcGetFixNowIssueCount(){if(wcTcGetPendingSource()!=='fix-now')return null;var count=wcTcGetStoredIssueCount();return count>0?count:null;}
1812function wcTcGetInstallConfirmCopy(){if(wcTcGetPendingSource()==='advanced-pro'){return{firstDesc:'It helps you fix advanced issues in seconds.',secondTitle:'Grammarly unlocks all corrections'};}
1813var count=wcTcGetFixNowIssueCount();if(count===1){return{firstDesc:'It helps you fix that writing issue in seconds.',secondTitle:'Grammarly unlocks your correction'};}
1814if(count>1){return{firstDesc:'It helps you fix these <span style="font-weight:bold;">'+count+' writing issues</span> in seconds.',secondTitle:'Grammarly unlocks your '+count+' corrections'};}
1815return{firstDesc:'It helps you fix tricky writing issues in seconds.',secondTitle:'Grammarly unlocks advanced corrections'};}
1816function wcTcEscapeHtml(str){return String(str||'').replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/"/g,'&quot;').replace(/'/g,'&#039;');}
1817function wcTcGetBackdropText(fallbackText){return String(fallbackText||wcGetEditorText()||'').replace(/\r\n/g,'\n');}
1818function wcTcGetBackdropRootFor(container){if(!container||!container.closest)return document.getElementById('wc-text-check-overlay')||document.getElementById('wc-tc-overlay');return container.closest('#wc-text-check-overlay')||container.closest('#wc-tc-overlay')||container.closest('.wc-tc-confirm-overlay')||document.getElementById('wc-text-check-overlay')||document.getElementById('wc-tc-overlay');}
1819function wcTcGetEditorBackdropMetrics(container){var overlay=wcTcGetBackdropRootFor(container);var target=document.getElementById('box')||document.querySelector('.resizable-textarea textarea')||document.querySelector('.finalResult')||document.querySelector('.resizable-textarea');if(!target||!target.getBoundingClientRect||!overlay||!overlay.getBoundingClientRect){return{top:0,left:0,width:760,height:320,padTop:24,padRight:24,padBottom:24,padLeft:24,fontSize:'',lineHeight:''};}
1820var targetRect=target.getBoundingClientRect();var overlayRect=overlay.getBoundingClientRect();if(!targetRect||targetRect.width<120||targetRect.height<80||!overlayRect||overlayRect.width<120){return{top:0,left:0,width:Math.max(320,Math.round((overlayRect&&overlayRect.width)||760)),height:Math.max(220,Math.round((overlayRect&&overlayRect.height)||320)),padTop:24,padRight:24,padBottom:24,padLeft:24,fontSize:'',lineHeight:''};}
1821var cs=window.getComputedStyle?window.getComputedStyle(target):null;var padTop=cs?parseFloat(cs.paddingTop||'0')||0:0;var padRight=cs?parseFloat(cs.paddingRight||'0')||0:0;var padBottom=cs?parseFloat(cs.paddingBottom||'0')||0:0;var padLeft=cs?parseFloat(cs.paddingLeft||'0')||0:0;return{top:Math.max(0,Math.round(targetRect.top-overlayRect.top)),left
1821:Math.max(0,Math.round(targetRect.left-overlayRect.left)),width:Math.max(120,Math.round(targetRect.width)),height:Math.max(80,Math.round(targetRect.height)),padTop:Math.round(padTop),padRight:Math.round(padRight),padBottom:Math.round(padBottom),padLeft:Math.round(padLeft),fontSize:cs&&cs.fontSize?cs.fontSize:'',lineHeight:cs&&cs.lineHeight&&cs.lineHeight!=='normal'?cs.lineHeight:''};}
1822function wcTcApplyBackdropMetrics(container){var metrics=wcTcGetEditorBackdropMetrics(container);container.style.setProperty('--wc-tc-sim-top',(metrics.top||0)+'px');container.style.setProperty('--wc-tc-sim-left',(metrics.left||0)+'px');container.style.setProperty('--wc-tc-sim-width',(metrics.width||760)+'px');container.style.setProperty('--wc-tc-sim-height',(metrics.height||320)+'px');container.style.setProperty('--wc-tc-sim-pad-top',(metrics.padTop||0)+'px');container.style.setProperty('--wc-tc-sim-pad-right',(metrics.padRight||0)+'px');container.style.setProperty('--wc-tc-sim-pad-bottom',(metrics.padBottom||0)+'px');container.style.setProperty('--wc-tc-sim-pad-left',(metrics.padLeft||0)+'px');if(metrics.fontSize)container.style.setProperty('--wc-tc-sim-font-size',metrics.fontSize);if(metrics.lineHeight)container.style.setProperty('--wc-tc-sim-line-height',metrics.lineHeight);}
1823function wcTcHighlightClass(category){return'wc-sim-hl wc-sim-hl-'+wcTcNormalizeCategory(category);}
1824function wcTcFindIssueRanges(rawText,highlights,issues){var text=String(rawText||'');var ranges=wcTcFlattenHighlights(highlights||wcTcGetStoredHighlights(),text);if(ranges.length)return ranges;var lower=text.toLowerCase();var fallbackRanges=[];function overlaps(start,end){for(var i=0;i<fallbackRanges.length;i++){if(start<fallbackRanges[i].end&&end>fallbackRanges[i].start)return true;}
1825return false;}
1826wcTcNormalizeIssues(issues||wcTcGetStoredIssues()).forEach(function(issue){var needle=String(issue.text||'');if(!needle)return;var searchNeedle=needle.toLowerCase();var idx=lower.indexOf(searchNeedle);while(idx!==-1){var end=idx+needle.length;if(!overlaps(idx,end)){fallbackRanges.push({start:idx,end:end,category:issue.category});return;}
1827idx=lower.indexOf(searchNeedle,idx+1);}});fallbackRanges.sort(function(a,b){if(a.start!==b.start)return a.start-b.start;return a.end-b.end;});return fallbackRanges;}
1828function wcTcBuildBackdropMarkup(text,highlights,issues){var raw=wcTcGetBackdropText(text);if(!raw)raw='This text is being prepared for your report so you can review advanced writing suggestions.';raw=raw.substring(0,5000);var ranges=wcTcFindIssueRanges(raw,highlights||wcTcGetStoredHighlights(),issues||wcTcGetStoredIssues());if(!ranges.length)return wcTcEscapeHtml(raw);var html='';var cursor=0;ranges.forEach(function(range){var start=Math.max(0,Math.min(raw.length,range.start));var end=Math.max(start,Math.min(raw.length,range.end));if(start>cursor)html+=wcTcEscapeHtml(raw.slice(cursor,start));html+='<span class="'+wcTcHighlightClass(range.category)+'">'+wcTcEscapeHtml(raw.slice(start,end))+'</span>';cursor=end;});if(cursor<raw.length)html+=wcTcEscapeHtml(raw.slice(cursor));return html;}
1829function wcTcRefreshTextCheckBackdrop(textOverride){var text=wcTcGetBackdropText(textOverride);var highlights=wcTcGetStoredHighlights();var issues=wcTcGetStoredIssues();var markup=wcTcBuildBackdropMarkup(text,highlights,issues);document.querySelectorAll('.wc-tc-bg-simulated, .wc-confirm-simulated, .wc-tc-confirm-simulated').forEach(function(container){wcTcApplyBackdropMetrics(container);container.innerHTML=markup;});}
1830function wcTcScheduleBackdropRefresh(textOverride){var text=wcTcGetBackdropText(textOverride);try{window.cancelAnimationFrame(window._wcTcBackdropRaf1||0);}catch(_){}
1831try{window.cancelAnimationFrame(window._wcTcBackdropRaf2||0);}catch(_){}
1832window._wcTcBackdropRaf1=window.requestAnimationFrame(function(){wcTcRefreshTextCheckBackdrop(text);window._wcTcBackdropRaf2=window.requestAnimationFrame(function(){wcTcRefreshTextCheckBackdrop(text);});});}
1833function wcTcClearBackdrop(){document.querySelectorAll('.wc-tc-bg-simulated, .wc-confirm-simulated, .wc-tc-confirm-simulated').forEach(function(container){container.innerHTML='';});}
1834window.wcTcRefreshTextCheckBackdrop=wcTcRefreshTextCheckBackdrop;window.wcTcScheduleBackdropRefresh=wcTcScheduleBackdropRefresh;function wcGetTextCheckRequestProfile(text){var raw=String(text||'');var charCount=raw.length;var wordCount=raw.trim()?raw.trim().split(/\s+/).length:0;if(charCount>6000||wordCount>1000){return{maxAttempts:2,timeoutMs:32000,retryDelayMs:1200};}
1835if(charCount>2500||wordCount>400){return{maxAttempts:2,timeoutMs:28000,retryDelayMs:1000};}
1836return{maxAttempts:2,timeoutMs:24000,retryDelayMs:800};}
1837function wcEnsureTextCheckOverlay(){var $existing=$('#wc-text-check-overlay');if($existing.length){var $rootConfirm=$existing.children('#wc-tc-confirm-overlay');if(!$rootConfirm.length){var $nestedConfirm=$existing.find('#wc-tc-confirm-overlay').first();if($nestedConfirm.length){$existing.append($nestedConfirm);$rootConfirm=$nestedConfirm;}}
1838var hasCore=$existing.find('#wc-tc-loading-view').length&&$existing.find('#wc-tc-result-view').length&&$rootConfirm.length;if(hasCore){if(!$existing.children('.wc-tc-bg-simulated').length){$existing.prepend('<div class="wc-tc-bg-simulated" aria-hidden="true"></div>');}
1839if(!$rootConfirm.children('.wc-tc-confirm-bg').length){$rootConfirm.prepend('<div class="wc-tc-confirm-bg" aria-hidden="true"><div class="wc-tc-confirm-simulated"></div></div>');}
1840return;}
1841$existing.remove();}
1842var html=`
1843        <div id="wc-text-check-overlay" aria-hidden="true">
1844            <div class="wc-tc-bg-simulated" aria-hidden="true"></div>
1845            <div class="wc-tc-split">
1846                <div class="wc-tc-left">
1847                    <ul class="wc-check-list" id="wc-tc-check-list">
1848                        <li class="wc-check-item" data-wc-tc-category="grammar"><span class="wc-label">Checking grammar...</span><span class="status"></span></li>
1849                        <li class="wc-check-item" data-wc-tc-category="spelling"><span class="wc-label">Checking spelling...</span><span class="status"></span></li>
1850                        <li class="wc-check-item" data-wc-tc-category="punctuation"><span class="wc-label">Reviewing punctuation...</span><span class="status"></span></li>
1851                        <li class="wc-check-item" data-wc-tc-category="word_choice"><span class="wc-label">
1851Analyzing word choice...</span><span class="status"></span></li>
1852                        <li class="wc-check-item" data-wc-tc-category="readability"><span class="wc-label">Verifying readability...</span><span class="status"></span></li>
1853                        <li class="wc-check-item" data-wc-tc-category="clarity"><span class="wc-label">Looking for clarity issues...</span><span class="status"></span></li>
1854                    </ul>
1855                </div>
1856                <div class="wc-tc-right">
1857                    <div class="wc-tc-loading-view" id="wc-tc-loading-view" aria-busy="false">
1858                        <div class="wc-tc-loading-card">
1859                            <div class="wc-tc-loading-spinner"></div>
1860                            <div class="wc-tc-loading-title" id="wc-tc-loading-title">Loading. Please wait...</div>
1861                            <div class="wc-tc-loading-copy" id="wc-tc-loading-copy">Preparing your report.</div>
1862                        </div>
1863                    </div>
1864
1865                    <div class="wc-tc-result-view" id="wc-tc-result-view" aria-live="polite">
1866                        <div class="wc-result-circle wc-zero" id="wc-tc-result-circle">
1867                            <span class="wc-tc-count" id="wc-tc-count-val">0</span>
1868                        </div>
1869                        <div class="wc-tc-headline" id="wc-tc-headline">We found issues.</div>
1870                        <div class="wc-tc-subline" id="wc-tc-subline">Do you want to fix them now?</div>
1871                        <div class="wc-tc-actions">
1872                            <button type="button" class="wc-btn-action wc-btn-secondary" id="wc-tc-btn-left">Not now</button>
1873                            <button type="button" class="wc-btn-action wc-btn-primary" id="wc-tc-btn-right">Fix now</button>
1874                        </div>
1875                        <div class="wc-tc-steps" id="wc-tc-steps"></div>
1876                    </div>
1877
1878                </div>
1879            </div>
1880
1881            <div class="wc-tc-confirm-overlay" id="wc-tc-confirm-overlay" aria-hidden="true">
1882                <div class="wc-tc-confirm-bg" aria-hidden="true"><div class="wc-tc-confirm-simulated"></div></div>
1883                <div class="wc-confirm-card">
1884                    <h3 id="wc-tc-confirm-title"></h3>
1885                    <p id="wc-tc-confirm-text"></p>
1886                    <div class="wc-confirm-actions" id="wc-tc-confirm-btns"></div>
1887                </div>
1888            </div>
1889        </div>`;var $container=$('.resizable-textarea');if($container.length){if($container.css('position')==='static'){$container.css('position','relative');}
1890$container.append(html);}else{$('body').append(html);}}
1891function wcTcMountOverlayIntoEditor(){var $overlay=$('#wc-text-check-overlay');if(!$overlay.length)return;var $editorContainer=$('.resizable-textarea');if(!$editorContainer.length)return;if($editorContainer.css('position')==='static'){$editorContainer.css('position','relative');}
1892if(!$overlay.parent().is($editorContainer)){$editorContainer.append($overlay);}}
1893function wcTcClearLoadingTimers(){(window._wcTcLoadingTimers||[]).forEach(function(timer){clearTimeout(timer);});window._wcTcLoadingTimers=[];}
1894function wcTcSyncLoadingAreaToChecklist(){try{var overlay=document.getElementById('wc-text-check-overlay');var right=overlay?overlay.querySelector('.wc-tc-right'):null;var list=overlay?overlay.querySelector('.wc-check-list'):null;var items=list?Array.prototype.slice.call(list.querySelectorAll('.wc-check-item')):[];if(!overlay||!right||!list||!items.length||!right.getBoundingClientRect)return;var previous=items.map(function(item){return{item:item,display:item.style.display,visibility:item.style.visibility};});items.forEach(function(item){item.style.display='flex';item.style.visibility='hidden';});var listRect=list.getBoundingClientRect();var rightRect=right.getBoundingClientRect();var top=Math.max(0,Math.round(listRect.top-rightRect.top));var height=Math.max(210,Math.round(listRect.height||0));previous.forEach(function(state){state.item.style.display=state.display;state.item.style.visibility=state.visibility;});if(height){right.style.setProperty('--wc-tc-loading-area-top',top+'px');right.style.setProperty('--wc-tc-loading-area-height',height+'px');}}catch(_){}}
1895function wcTcShowLoadingView(){var loadingView=document.getElementById('wc-tc-loading-view');var resultView=document.getElementById('wc-tc-result-view');var loadingTitle=document.getElementById('wc-tc-loading-title');var loadingCopy=document.getElementById('wc-tc-loading-copy');wcTcClearLoadingTimers();if(resultView){resultView.classList.remove('active');resultView.style.opacity='0';}
1896if(loadingTitle){loadingTitle.textContent='';loadingTitle.style.display='none';}
1897if(loadingCopy){loadingCopy.textContent='';loadingCopy.style.display='none';}
1898if(loadingView){wcTcSyncLoadingAreaToChecklist();loadingView.classList.add('active');loadingView.setAttribute('aria-busy','true');}
1899window._wcTcLoadingTimers.push(setTimeout(function(){if(loadingCopy&&loadingView&&loadingView.classList.contains('active')){loadingCopy.style.display='block';loadingCopy.textContent='Please wait...';}},7000));window._wcTcLoadingTimers.push(setTimeout(function(){if(loadingCopy&&loadingView&&loadingView.classList.contains('active')){loadingCopy.textContent='Still preparing your report.';}},15000));}
1900function wcTcHideLoadingView(){var loadingView=document.getElementById('wc-tc-loading-view');var loadingTitle=document.getElementById('wc-tc-loading-title');var loadingCopy=document.getElementById('wc-tc-loading-copy');wcTcClearLoadingTimers();if(loadingTitle){loadingTitle.textContent='';loadingTitle.style.display='none';}
1901if(loadingCopy){loadingCopy.textContent='';loadingCopy.style.display='none';}
1902if(loadingView){loadingView.classList.remove('active');loadingView.setAttribute('aria-busy','false');}}
1903function wcTcSmartExpandEditor(targetPixels){var $textarea=$('#box');if(!$textarea.length)return;var currentHeight=$textarea.outerHeight();
1903if(currentHeight<targetPixels){if(window._wcTcOriginalHeight===null||window._wcTcOriginalHeight===undefined){window._wcTcOriginalHeight=currentHeight;}
1904$textarea.stop(true,false).animate({height:targetPixels+'px'},300);}}
1905function wcTcRestoreEditorHeight(){if(window._wcTcOriginalHeight!==null&&window._wcTcOriginalHeight!==undefined){$('#box').stop(true,false).animate({height:window._wcTcOriginalHeight+'px'},300);window._wcTcOriginalHeight=null;}}
1906function wcTcPrepareModalShell(mode,text){wcEnsureTextCheckOverlay();wcTcMountOverlayIntoEditor();wcTcSetMode(mode==='pro'?'pro':'standard');window._wcTcActive=true;window._wcTcError=false;try{window.scrollTo({top:0,behavior:'smooth'});$('html, body').animate({scrollTop:0},'fast');}catch(_){}
1907wcTcClearPendingSource();window._wcTcProSource='';wcTcClearStoredIssueCount();wcTcClearStoredIssues();wcTcClearStoredHighlights();wcTcClearBackdrop();wcTcHideLoadingView();var $overlay=$('#wc-text-check-overlay');$overlay.show().removeClass('wc-results-active wc-pro-results-active wc-backdrop-tease').attr('aria-hidden','false');$('#wc-tc-result-view').removeClass('active').hide().css('opacity','0');wcTcScheduleBackdropRefresh(text||wcGetEditorText());}
1908function wcTcShowLongTextInstallPrompt(text){wcTcPrepareModalShell('standard',text);window._wcTcProSource='';wcTcSetConfirmCard('Long text detected','Install the free app to review longer text in the editor.',`
1909            <button type="button" class="wc-btn-action wc-btn-primary" onclick="window.wcTcGetItNow()">Get it now</button>
1910            <button type="button" class="wc-btn-action wc-btn-secondary" onclick="window.wcTcCancel()">Not now, return to editor</button>
1911            `);wcTcShowConfirmOverlay();return false;}
1912function wcTcShowProLongDocumentPrompt(text){wcTcPrepareModalShell('pro',text);window._wcTcProSource='g1';wcTcSetConfirmCard('Long document detected','Grammarly Pro unlocks advanced checks for longer documents.',`
1913            <button type="button" class="wc-btn-action wc-btn-primary" onclick="window.wcTcUpgradeKeepOverlay()">Unlock with Grammarly Pro</button>
1914            <button type="button" class="wc-btn-action wc-btn-secondary" onclick="window.wcTcCancel()">Not now, return to editor</button>
1915            `);wcTcShowConfirmOverlay();return false;}
1916function wcTcSetSteps(mode){var steps=document.getElementById('wc-tc-steps');if(!steps)return;if(mode==='pro'){steps.innerHTML=`
1917                <p>How it works:</p>
1918                <ol>
1919                    <li>Open the Pro page.</li>
1920                    <li>Choose your Pro plan.</li>
1921                    <li>Return here to see Pro corrections.</li>
1922                </ol>`;return;}
1923if(mode==='report'){steps.innerHTML=`
1924                <p>How it works:</p>
1925                <ol>
1926                    <li>
1926Click to open report in a new tab</li>
1927                    <li>Create your free account or get the app</li>
1928                    <li>See advanced corrections in WordCounter</li>
1929                </ol>`;return;}
1930if(mode==='advanced'){steps.innerHTML=`
1931                <p>How it works:</p>
1932                <ol>
1933                    <li>Run an advanced check</li>
1934                    <li>Review Pro writing signals</li>
1935                    <li>Upgrade to unlock corrections</li>
1936                </ol>`;return;}
1937steps.innerHTML=`
1938            <p>How it works:</p>
1939            <ol>
1940                <li><span class="wc-text-desktop">Get the free app or browser extension</span><span class="wc-text-mobile">Get the free app</span></li>
1941                <li>Return to this page for confirmation</li>
1942                <li>See corrections instantly</li>
1943            </ol>`;}
1944function wcTcGetCategoryByIndex(index){var categories=wcTcGetActiveCategories();return(categories[index]&&categories[index].key)||'';}
1945function wcTcSetChecklistCategories(){var categories=wcTcGetActiveCategories();$('.wc-check-item').each(function(index){var item=categories[index];if(!item)return;$(this).attr('data-wc-tc-category',item.key);$(this).find('.wc-label').text(item.label);});}
1946function wcTcStatusChipHtml(type,value,category){if(type==='check'){return'<span class="wc-tc-status-chip wc-tc-status-check" aria-label="No issues">✓</span>';}
1947if(type==='reviewed'){return'<span class="wc-tc-status-chip wc-tc-status-reviewed" aria-label="Checked"></span>';}
1948if(type==='count'){var safeValue=Math.max(0,Math.floor(Number(value)||0));var safeCategory=wcTcNormalizeCategory(category)||'clarity';var wideClass=safeValue>9?' wc-tc-status-wide':'';return'<span class="wc-tc-status-chip wc-tc-status-count wc-tc-status-'+safeCategory+wideClass+'" aria-label="'+safeValue+' signals">'+safeValue+'</span>';}
1949return'<span class="wc-tc-status-chip wc-tc-status-pending" aria-hidden="true"></span>';}
1950function wcTcResetChecklistStatuses(){wcTcSetChecklistCategories();$('.wc-check-item').each(function(index){var category=wcTcGetCategoryByIndex(index);if(category)$(this).attr('data-wc-tc-category',category);$(this).removeClass('active done').css('display','none');$(this).find('.status').removeClass('wc-checking status-na status-clickable').off('click').html(wcTcStatusChipHtml('pending'));if(index===0)$(this).css('display','flex');});wcTcSyncLoadingAreaToChecklist();}
1951function wcTcApplySummaryToChecklist(summary){summary=summary||{};$('.wc-check-item').each(function(index){var category=$(this).attr('data-wc-tc-category')||wcTcGetCategoryByIndex(index);var raw=summary[category];var count=Number(raw);if(!Number.isFinite(count)||count<0)count=0;count=Math.floor(count);$(this).css('display','flex').removeClass('active').addClass('done');$(this).find('.status').removeClass('wc-checking status-na status-clickable').off('click').html(count>0?wcTcStatusChipHtml('count',count,category):(window._wcTcMode==='pro'?wcTcStatusChipHtml('reviewed'):wcTcStatusChipHtml('check')));});}
1952function wcTcResetResultButtons(){var btnLeft=document.getElementById('wc-tc-btn-left');var btnRight=document.getElementById('wc-tc-btn-right');if(btnLeft){btnLeft.onclick=null;btnLeft.textContent='Not now';}
1953if(btnRight){btnRight.onclick=null;btnRight.textContent='Fix now';btnRight.classList.remove('wc-btn-orange');btnRight.classList.add('wc-btn-primary');}}
1954function wcTcShowPreparingState(){if(!window._wcTcActive)return;wcTcHideLoadingView();wcTcSmartExpandEditor(300);wcTcScheduleBackdropRefresh();$('#wc-tc-count-val').text('…');$('#wc-tc-result-circle').removeClass('wc-zero');$('#wc-tc-headline').text('Advanced check is still preparing...');$('#wc-tc-subline').text('Install the free app to continue checking in the editor.');wcTcSetSteps('install');wcTcResetResultButtons();$('#wc-tc-btn-right').text('Get it now').off('click').on('click',function(){window.wcTcGetItNow();});$('#wc-tc-btn-left').off('click').on('click',function(){window.wcTcCancel();});$('#wc-tc-result-view').show().addClass('active').css('opacity','1');$('#wc-text-check-overlay').addClass('wc-results-active');}
1955function wcTcShowAdvancedCheckCouldNotCompleteModal(){if(!window._wcTcActive)return;wcTcHideLoadingView();wcTcScheduleBackdropRefresh();$('#wc-tc-result-view').removeClass('active').hide().css('opacity','0');$('#wc-text-check-overlay').show().removeClass('wc-results-active wc-pro-results-active').attr('aria-hidden','false');
1955var isProContext=window._wcTcMode==='pro'||wcIsGlyConfirmedOrEnabled();wcTcSetConfirmCard('Advanced check could not complete',isProContext?'You can try again later or get Pro for advanced corrections in the editor.':'You can try again later or install the free app to keep checking in the editor.',isProContext?`
1956            <button type="button" class="wc-btn-action wc-btn-secondary" onclick="window.wcTcCancel()">Close</button>
1957            <button type="button" class="wc-btn-action wc-btn-primary" onclick="window.wcTcUpgradeKeepOverlay()">Get Pro</button>
1958            `:`
1959            <button type="button" class="wc-btn-action wc-btn-secondary" onclick="window.wcTcCancel()">Close</button>
1960            <button type="button" class="wc-btn-action wc-btn-primary" onclick="window.wcTcGetItNow()">Get the free app</button>
1961            `);wcTcShowConfirmOverlay();}
1962function wcTcShowFallbackState(reason){wcTcShowAdvancedCheckCouldNotCompleteModal();}
1963function wcTcShowResults(data){data=data||{issue_count:0};var count=Number(data.issue_count||0);var countText=Number.isFinite(count)?String(count):'—';var issueText=count===1?'Writing issue found':'Writing issues found';wcTcHideLoadingView();wcTcSmartExpandEditor(300);wcTcResetResultButtons();$('#wc-tc-count-val').text(countText);if(!Number.isFinite(count)){wcTcShowFallbackState('error');return;}
1964wcTcStoreIssueCount(count);wcTcStoreIssues(data.issues||[]);wcTcStoreHighlights(data.highlights||data.highlight_ranges||{},data._wcTcSubmitText||wcTcGetBackdropText());wcTcApplySummaryToChecklist(data.summary||{});wcTcScheduleBackdropRefresh();if(!data._wcTcBackdropTeased){data._wcTcBackdropTeased=true;wcTcShowBackdropTease(function(){wcTcShowResults(data);});return;}
1965if(count===0){$('#wc-tc-result-circle').addClass('wc-zero');$('#wc-tc-headline').text('No basic issues found.');$('#wc-tc-subline').text('Want to check for advanced issues?');wcTcSetSteps('advanced');$('#wc-tc-btn-right').text('Check now').off('click').on('click',function(){var text=data._wcTcSubmitText||wcGetEditorText();if(!text||text.length<2)return alert('Please enter text to check.');startTcProFlow(text,{source:'g0-advanced'});});}else{$('#wc-tc-result-circle').removeClass('wc-zero');$('#wc-tc-headline').text(issueText);$('#wc-tc-subline').text(count===1?'Do you want to fix it now?':'Do you want to fix them now?');wcTcSetSteps('install');$('#wc-tc-btn-right').text('Fix now').off('click').on('click',function(){window.wcTcFixNow(count);});}
1966$('#wc-tc-btn-left').off('click').on('click',function(){window.wcTcCancel();});$('#wc-tc-result-view').show().addClass('active').css('opacity','1');$('#wc-text-check-overlay').addClass('wc-results-active');}
1967function wcTcShowBackdropTease(done){var $overlay=$('#wc-text-check-overlay');var waitMs=Math.max(0,Number(WC_TC_BACKDROP_TEASE_MS)||0);if(!$overlay.length||waitMs<=0){if(typeof done==='function')done();return;}
1968wcTcHideLoadingView();$('#wc-tc-result-view').removeClass('active').hide().css('opacity','0');$overlay.addClass('wc-backdrop-tease');setTimeout(function(){$overlay.removeClass('wc-backdrop-tease');if(!window._wcTcActive)return;if(typeof done==='function')done();},waitMs);}
1969function wcTcShowProFallbackState(reason){wcTcShowAdvancedCheckCouldNotCompleteModal();}
1970function wcTcShowProResults(data){data=data||{issue_count:0,summary:{}};var count=Number(data.issue_count||0);if(!Number.isFinite(count)){wcTcShowProFallbackState('error');return;}
1971wcTcHideLoadingView();wcTcSmartExpandEditor(300);wcTcResetResultButtons();wcTcStoreIssueCount(count);wcTcStoreIssues(data.issues||[]);wcTcStoreHighlights(data.highlights||data.highlight_ranges||{},data._wcTcSubmitText||wcTcGetBackdropText());wcTcApplySummaryToChecklist(data.summary||{});wcTcScheduleBackdropRefresh();if(!data._wcTcBackdropTeased){data._wcTcBackdropTeased=true;wcTcShowBackdropTease(function(){wcTcShowProResults(data);});return;}
1972$('#wc-tc-result-circle').removeClass('wc-zero');if(count===0){$('#wc-tc-count-val').text('✓');$('#wc-tc-result-circle').addClass('wc-zero');$('#wc-tc-headline').text('Pro review complete');$('#wc-tc-subline').text('Grammarly Pro unlocks advanced checks.');}else{$('#wc-tc-count-val').text(String(count));$('#wc-tc-headline').text(count===1?'Pro writing signal found':'Pro writing signals found');$('#wc-tc-subline').text('Grammarly Pro unlocks advanced checks.');}
1973wcTcSetSteps('pro');$('#wc-tc-btn-left').text('Not now').off('click').on('click',function(){window.wcTcCancel();});$('#wc-tc-btn-right').html(wcTcProUpgradeButtonHtml()).off('click').on('click',function(){window.wcTcUpgradeKeepOverlay();});$('#wc-tc-result-view').show().addClass('active').css('opacity','1');$('#wc-text-check-overlay').addClass('wc-results-active wc-pro-results-active');}
1974function wcTcPerformProApi(text,reqId){var profile=wcGetTextCheckRequestProfile(text);var MAX_ATTEMPTS=profile.maxAttempts;var TIMEOUT_MS=profile.timeoutMs;var RETRY_DELAY_MS=profile.retryDelayMs;var submitText=wcTcGetBackdropText(text);var payload=JSON.stringify({text:submitText,locale:'en'});function sleep(ms){return new Promise(function(resolve){setTimeout(resolve,ms);});}
1975async function tryOnce(){var controller=(typeof AbortController==='function')?new AbortController():null;var timedOut=false;var timer=controller?setTimeout(function(){timedOut=true;try{controller.abort();}catch(_){}},TIMEOUT_MS):null;try{window._wcTcAbortController=controller;var res=await fetch(API_TC_BASE+'/text-check-pro',{method:'POST',headers:{'Content-Type':'application/json'},body:payload,...(controller?{signal:controller.signal}:{})});var data=null;try{data=await res.json();}catch(e){data=null;}
1976if(res.status===413||(data&&data.error&&String(data.error).indexOf('Max')>-1)){return{hardStop:true};}
1977if(data&&data.soft_fail){return{softFail:true,status:data.status||'error'};}
1978if(!res.ok||(data&&data.error)){throw new Error((data&&data.error)?data.error:('HTTP '+res.status));}
1979var rawCount=(data&&(data.issue_count!==undefined?data.issue_count:(data.count!==undefined?data.count:data.issues)));var countNum=Number(rawCount);if(rawCount===undefined||rawCount===null||Number.isNaN(countNum)){throw new Error('Missing issue count');}
1980data.issue_count=countNum;data.issues=wcTcNormalizeIssues(data.issues||[]);data.highlights=wcTcNormalizeHighlights(data.highlights||data.highlight_ranges||{},submitText);data._wcTcSubmitText=submitText;return{ok:true,data:data};}catch(err){if(timedOut)err.__wcTimeout=true;throw err;}finally{if(timer)clearTimeout(timer);if(window._wcTcAbortController===controller){window._wcTcAbortController=null;}}}
1981return(async function(){var lastStatus='error';for(var attempt=1;attempt<=MAX_ATTEMPTS;attempt++){try{var r=await tryOnce();if(r&&r.hardStop)return{status:'hard-stop',data:null};if(r&&r.softFail)return{status:r.status||'error',data:null};if(r&&r.ok)return{status:'success',data:r.data};}catch(err){lastStatus=(err&&err.__wcTimeout)?'timeout':'error';console.error('WordCounter text-check-pro API attempt '+attempt+' failed:',err);if(attempt<MAX_ATTEMPTS)await sleep(RETRY_DELAY_MS);}}
1982return{status:lastStatus,data:null};})();}
1983function wcTcPerformApi(text,reqId){var profile=wcGetTextCheckRequestProfile(text);var MAX_ATTEMPTS=profile.maxAttempts;var TIMEOUT_MS=profile.timeoutMs;var RETRY_DELAY_MS=profile.retryDelayMs;var submitText=wcTcGetBackdropText(text);var payload=JSON.stringify({text:submitText,locale:'en'});function sleep(ms){return new Promise(function(resolve){setTimeout(resolve,ms);});}
1984async function tryOnce(){var controller=(typeof AbortController==='function')?new AbortController():null;var timedOut=false;var timer=controller?setTimeout(function(){timedOut=true;try{controller.abort();}catch(_){}},TIMEOUT_MS):null;try{window._wcTcAbortController=controller;var res=await fetch(API_TC_BASE+'/text-check',{method:'POST',headers:{'Content-Type':'application/json'},body:payload,...(controller?{signal:controller.signal}:{})});var data=null;try{data=await res.json();}catch(e){data=null;}
1985if(res.status===413||(data&&data.error&&String(data.error).indexOf('Max')>-1)){return{hardStop:true};}
1986if(data&&data.soft_fail){return{softFail:true,status:data.status||'error'};}
1987if(!res.ok||(data&&data.error)){var err=new Error((data&&data.error)?data.error:('HTTP '+res.status));throw err;}
1988var rawCount=(data&&(data.issue_count!==undefined?data.issue_count:(data.count!==undefined?data.count:data.issues)));var countNum=Number(rawCount);if(rawCount===undefined||rawCount===null||Number.isNaN(countNum)){throw new Error('Missing issue count');}
1989data.issue_count=countNum;data.issues=wcTcNormalizeIssues(data.issues||[]);data.highlights=wcTcNormalizeHighlights(data.highlights||data.highlight_ranges||{},submitText);data._wcTcSubmitText=submitText;return{ok:true,data:data};}catch(err){if(timedOut)err.__wcTimeout=true;throw err;}finally{if(timer)clearTimeout(timer);if(window._wcTcAbortController===controller){window._wcTcAbortController=null;}}}
1990return(async function(){var lastStatus='error';for(var attempt=1;attempt<=MAX_ATTEMPTS;attempt++){try{var r=await tryOnce();if(r&&r.hardStop){if(window._wcTcActive&&window._wcTcReqId===reqId){window._wcTcError=true;wcTcShowLongTextInstallPrompt(text);}
1991return{hardStop:true};}
1992if(r&&r.softFail)return{status:r.status||'error',data:null};if(r&&r.ok)return{status:'success',data:r.data};}catch(err){lastStatus=(err&&err.__wcTimeout)?'timeout':'error';console.error('WordCounter text-check API attempt '+attempt+' failed:',err);if(attempt<MAX_ATTEMPTS){await sleep(RETRY_DELAY_MS);}}}
1993return{status:lastStatus,data:null};})();}
1994async function wcTcRunSequence(reqId){var items=$('.wc-check-item');var delays=[450,450,400,400,500,450];for(var i=0;i<items.length;i++){if(window._wcTcError||!window._wcTcActive)break;
1994if(window._wcTcReqId&&reqId&&window._wcTcReqId!==reqId)break;var item=$(items[i]);var status=item.find('.status');item.css('display','flex').addClass('active');status.removeClass('status-na status-clickable').addClass('wc-checking').off('click').html('');await new Promise(function(resolve){setTimeout(resolve,delays[i]||500);});if(window._wcTcError||!window._wcTcActive)break;if(window._wcTcReqId&&reqId&&window._wcTcReqId!==reqId)break;item.removeClass('active').addClass('done');status.removeClass('wc-checking').html(wcTcStatusChipHtml('pending'));}
1995return true;}
1996function startTcProFlow(text,options){options=options||{};if(!text||text.length<2){alert('Please enter text to check.');return false;}
1997if(wcTcHasConfirmedPro()){return false;}
1998wcEnsureTextCheckOverlay();wcTcMountOverlayIntoEditor();try{window.scrollTo({top:0,behavior:'smooth'});$('html, body').animate({scrollTop:0},'fast');}catch(_){}
1999wcTcSetMode('pro');window._wcTcProSource=options.source||(function(){try{return((typeof window.IsGrammarlyEnabled==='function'&&window.IsGrammarlyEnabled())||localStorage.getItem('glyConfirmed')==='true')?'g1':'g0';}catch(_){return'g0';}})();window._wcTcActive=true;window._wcTcError=false;wcTcClearPendingSource();wcTcClearStoredIssueCount();wcTcClearStoredIssues();wcTcClearStoredHighlights();try{if(window._wcTcAbortController&&typeof window._wcTcAbortController.abort==='function'){window._wcTcAbortController.abort();}}catch(_){}
2000window._wcTcAbortController=null;var reqId=(Date.now().toString(36)+Math.random().toString(36).slice(2));window._wcTcReqId=reqId;window._wcTcSeqDone=false;window._wcTcApiDone=false;window._wcTcApiData=null;window._wcTcApiStatus='pending';wcTcClearBackdrop();wcTcSmartExpandEditor(250);wcTcHideLoadingView();$('#wc-text-check-overlay').removeClass('wc-confirm-active wc-pro-results-active');$('#wc-tc-confirm-overlay').removeClass('active').hide().attr('aria-hidden','true');$('#wc-tc-result-view').removeClass('active').hide().css('opacity','0');var $overlay=$('#wc-text-check-overlay');$overlay.show().removeClass('wc-results-active').attr('aria-hidden','false');wcTcResetChecklistStatuses();wcTcShowLoadingView();wcTcScheduleBackdropRefresh(text);wcTcPerformProApi(text,reqId).then(function(result){if(!window._wcTcActive||window._wcTcReqId!==reqId)return;window._wcTcApiDone=true;window._wcTcApiStatus=(result&&result.status)?result.status:'error';window._wcTcApiData=(result&&result.data)?result.data:null;if(window._wcTcSeqDone){if(window._wcTcApiData)wcTcShowProResults(window._wcTcApiData);else wcTcShowProFallbackState(window._wcTcApiStatus);}});wcTcRunSequence(reqId).then(function(){if(!window._wcTcActive||window._wcTcReqId!==reqId)return;window._wcTcSeqDone=true;if(!window._wcTcApiDone){return;}
2001if(window._wcTcApiData)wcTcShowProResults(window._wcTcApiData);else wcTcShowProFallbackState(window._wcTcApiStatus);});return false;}
2002function startTcFlow(text){if(!text||text.length<2){alert('Please enter text to check.');return false;}
2003wcEnsureTextCheckOverlay();wcTcMountOverlayIntoEditor();wcTcSetMode('standard');window._wcTcProSource='';try{window.scrollTo({top:0,behavior:'smooth'});$('html, body').animate({scrollTop:0},'fast');}catch(_){}
2004window._wcTcActive=true;window._wcTcError=false;wcTcClearPendingSource();wcTcClearStoredIssueCount();wcTcClearStoredIssues();wcTcClearStoredHighlights();try{if(window._wcTcAbortController&&typeof window._wcTcAbortController.abort==='function'){window._wcTcAbortController.abort();}}catch(_){}
2005window._wcTcAbortController=null;var reqId=(Date.now().toString(36)+Math.random().toString(36).slice(2));window._wcTcReqId=reqId;window._wcTcSeqDone=false;window._wcTcApiDone=false;window._wcTcApiData=null;window._wcTcApiStatus='pending';wcTcClearBackdrop();wcTcSmartExpandEditor(250);wcTcHideLoadingView();$('#wc-text-check-overlay').removeClass('wc-confirm-active wc-pro-results-active');$('#wc-tc-confirm-overlay').removeClass('active').hide().attr('aria-hidden','true');$('#wc-tc-result-view').removeClass('active').hide().css('opacity','0');var $overlay=$('#wc-text-check-overlay');$overlay.show().removeClass('wc-results-active').attr('aria-hidden','false');wcTcResetChecklistStatuses();wcTcShowLoadingView();wcTcScheduleBackdropRefresh(text);wcTcPerformApi(text,reqId).then(function(result){if(!window._wcTcActive||window._wcTcReqId!==reqId)return;if(result&&result.hardStop)return;window._wcTcApiDone=true;window._wcTcApiStatus=(result&&result.status)?result.status:'error';window._wcTcApiData=(result&&result.data)?result.data:null;if(window._wcTcSeqDone){if(window._wcTcApiData){wcTcShowResults(window._wcTcApiData);}else{wcTcShowFallbackState(window._wcTcApiStatus);}}});wcTcRunSequence(reqId).then(function(){if(!window._wcTcActive||window._wcTcReqId!==reqId)return;window._wcTcSeqDone=true;if(!window._wcTcApiDone){return;}
2006if(window._wcTcApiData){wcTcShowResults(window._wcTcApiData);}else{wcTcShowFallbackState(window._wcTcApiStatus);}});return false;}
2007function wcTcSetConfirmCard(titleHtml,bodyHtml,buttonsHtml){var title=document.getElementById('wc-tc-confirm-title');var desc=document.getElementById('wc-tc-confirm-text');var btns=document.getElementById('wc-tc-confirm-btns');if(title)title.innerHTML=titleHtml||'';if(desc)desc.innerHTML=bodyHtml||'';if(btns)btns.innerHTML=buttonsHtml||'';}
2008function wcTcShowConfirmOverlay(){var overlay=document.getElementById('wc-tc-confirm-overlay');if(!overlay)return;var root=document.getElementById('wc-text-check-overlay');if(root&&root.classList)root.classList.add('wc-confirm-active');overlay.style.display='flex';overlay.setAttribute('aria-hidden','false');wcTcScheduleBackdropRefresh();setTimeout(function(){overlay.classList.add('active');},10);}
2009function wcTcHideConfirmOverlay(){var overlay=document.getElementById('wc-tc-confirm-overlay');var root=document.getElementById('wc-text-check-overlay');if(root&&root.classList)root.classList.remove('wc-confirm-active');if(!overlay)return;overlay.classList.remove('active');overlay.style.display='none';overlay.setAttribute('aria-hidden','true');}
2010function wcTcResetConfirmationCard(){var copy=wcTcGetInstallConfirmCopy();wcTcSetConfirmCard('Do you have Grammarly installed?',copy.firstDesc,`
2011            <button type="button" class="wc-btn-action wc-btn-primary" onclick="window.wcTcConfirmYes()">Yes, I have it</button>
2012            <button type="button" class="wc-btn-action wc-btn-secondary" onclick="window.wcTcConfirmNo()">No, I don\'t</button>
2013            `);}
2014function wcTcMarkInstallPending(source){if(source)wcTcSetPendingSource(source);try{if(window.wcInstallReturnPrompt&&typeof window.wcInstallReturnPrompt.mark==='function'){window.wcInstallReturnPrompt.mark(WC_TC_PENDING_INSTALL_KEY);}else{localStorage.setItem(WC_TC_PENDING_INSTALL_KEY,String(Date.now?Date.now():(new Date()).getTime()));}}catch(_){}}
2015function wcTcShowInstallReturnPrompt(){var $overlay=$('#wc-text-check-overlay');if($overlay.length){$overlay.show().addClass('wc-results-active').attr('aria-hidden','false');}
2016wcTcResetConfirmationCard();wcTcShowConfirmOverlay();}
2017function wcTcBindInstallReturnPrompt(){if(window.wcInstallReturnPrompt&&typeof window.wcInstallReturnPrompt.watch==='function'){window.wcInstallReturnPrompt.watch(WC_TC_PENDING_INSTALL_KEY,wcTcShowInstallReturnPrompt);return;}
2018if(window.__wcTcInstallFocusBound)return;window.__wcTcInstallFocusBound=true;function maybeShow(){var pending=null;try{pending=localStorage.getItem(WC_TC_PENDING_INSTALL_KEY);}catch(_){}
2019if(pending){try{localStorage.removeItem(WC_TC_PENDING_INSTALL_KEY);}catch(_){}
2020wcTcShowInstallReturnPrompt();}}
2021window.addEventListener('focus',maybeShow);window.addEventListener('pageshow',maybeShow);document.addEventListener('visibilitychange',function(){if(!document.hidden)maybeShow();});document.addEventListener('touchend',maybeShow,true);document.addEventListener('pointerdown',maybeShow,true);setTimeout(maybeShow,500);}
2022window.wcTcFixNow=function(issueCount){var text=wcGetEditorText();if(!text||text.length<2)return alert('Please enter text to check.');try{var count=Number(issueCount);
2022if(!Number.isFinite(count))count=wcTcGetStoredIssueCount();if(count!==null&&Number.isFinite(Number(count)))wcTcStoreIssueCount(count);wcTcMarkInstallPending('fix-now');if(window.location.href===abs_path)localStorage.setItem('text',text);}catch(_){}
2023wcTcBindInstallReturnPrompt();var win=window.open('/track/enable','_blank','noopener');if(win){try{win.opener=null;}catch(_){}}};window.wcTcConfirmNo=function(){var copy=wcTcGetInstallConfirmCopy();wcTcSetConfirmCard(copy.secondTitle,'It\'s free and you can uninstall anytime.',`
2024            <button type="button" class="wc-btn-action wc-btn-primary" onclick="window.wcTcGetItNow()">Get it now</button>
2025            <button type="button" class="wc-btn-action wc-btn-secondary" onclick="window.wcTcCancel()">Not now</button>
2026            `);wcTcShowConfirmOverlay();};window.wcTcConfirmYes=function(){try{localStorage.setItem('glyConfirmed','true');}catch(_){}
2027wcTcClearPendingSource();try{if(typeof window.HideGrammarlyOFFIndicator==='function')window.HideGrammarlyOFFIndicator();}catch(_){}
2028try{if(typeof window.refreshGlyState==='function')window.refreshGlyState();}catch(_){}
2029window.wcTcShowProModal('flow');};window.wcTcGetItNow=function(){var text=wcGetEditorText();try{wcTcMarkInstallPending();if(window.location.href===abs_path&&text)localStorage.setItem('text',text);}catch(_){}
2030wcTcBindInstallReturnPrompt();var win=window.open('/track/enable','_blank','noopener');if(win){try{win.opener=null;}catch(_){}}
2031wcTcHideConfirmOverlay();};window.wcTcShowProModal=function(source){source=source||'direct';wcTcClearPendingSource();window._wcTcActive=false;window._wcTcError=false;try{wcTcHideConfirmOverlay();}catch(_){}
2032try{wcTcHideLoadingView();}catch(_){}
2033try{var $overlay=$('#wc-text-check-overlay');if($overlay.length){$overlay.stop(true,true).fadeOut(120,function(){$overlay.removeClass('wc-results-active').attr('aria-hidden','true');wcTcRestoreEditorHeight();});}}catch(_){}
2034setTimeout(function(){if(typeof window.wcShowProModal==='function'){window.wcShowProModal(source);}},0);};window.wcTcHideConfirmOverlay=wcTcHideConfirmOverlay;function wcTcShowPostUpgradeInstallConfirmModal(){wcTcSetPendingSource('advanced-pro');wcTcResetConfirmationCard();wcTcShowConfirmOverlay();}
2035function wcTcShowProAccessConfirmModal(){wcTcSetConfirmCard('Do you have Grammarly Pro?',"If you activated Pro or already have it, please confirm.",`
2036            <button type="button" class="wc-btn-action wc-btn-primary" onclick="window.wcTcConfirmHasPro()">Yes, I have Pro</button>
2037            <button type="button" class="wc-btn-action wc-btn-secondary" onclick="window.wcTcCancel()">Not now, return to editor</button>
2038            `);wcTcShowConfirmOverlay();}
2039window.wcTcConfirmHasPro=function(){wcTcSetConfirmedPro();window.wcTcCancel();};window.wcTcUpgradeKeepOverlay=function(){var win=window.open('/track/upgrade','_blank','noopener');if(win){try{win.opener=null;}catch(_){}}
2040var isG1=false;try{isG1=!!((typeof window.IsGrammarlyEnabled==='function'&&window.IsGrammarlyEnabled())||localStorage.getItem('glyConfirmed')==='true');}catch(_){}
2041if(isG1&&window._wcTcProSource!=='g0-advanced'){wcTcShowProAccessConfirmModal();}else{wcTcShowPostUpgradeInstallConfirmModal();}
2042return false;};window.wcTcUpgrade=function(){var win=window.open('/track/upgrade','_blank','noopener');if(win){try{win.opener=null;}catch(_){}}
2043window.wcTcCancel();};window.wcTcHandleConfirmModalFlow=function(source){wcTcClearPendingSource();var isG1=false;try{isG1=!!((typeof window.IsGrammarlyEnabled==='function'&&window.IsGrammarlyEnabled())||localStorage.getItem('glyConfirmed')==='true');}catch(_){}
2044if(isG1){window.wcTcShowProModal(source||'direct');return;}
2045if(typeof wcCanShowGlyConfirmThisSession==='function'&&!wcCanShowGlyConfirmThisSession()){if(typeof window.glyQuesDisplay==='function')window.glyQuesDisplay();return;}
2046if(typeof wcMarkGlyConfirmShown==='function')wcMarkGlyConfirmShown();wcTcResetConfirmationCard();wcTcShowConfirmOverlay();};window.wcTcCancel=function(){wcTcClearPendingSource();wcTcClearStoredIssueCount();wcTcClearStoredIssues();wcTcClearStoredHighlights();window._wcTcActive=false;window._wcTcError=false;window._wcTcReqId=null;window._wcTcApiDone=false;window._wcTcSeqDone=false;window._wcTcApiData=null;window._wcTcApiStatus='pending';try{if(window._wcTcAbortController&&typeof window._wcTcAbortController.abort==='function'){window._wcTcAbortController.abort();}}catch(_){}
2047window._wcTcAbortController=null;wcTcHideLoadingView();var $overlay=$('#wc-text-check-overlay');$overlay.stop(true,true).fadeOut(200,function(){$('#wc-text-check-overlay').removeClass('wc-confirm-active wc-pro-results-active');$('#wc-tc-confirm-overlay').removeClass('active').hide().attr('aria-hidden','true');$('#wc-tc-result-view').removeClass('active').hide().css('opacity','0');wcTcResetChecklistStatuses();$('#wc-text-check-overlay').removeClass('wc-confirm-active wc-pro-results-active');$('#wc-tc-count-val').text('0');$('#wc-tc-result-circle').addClass('wc-zero');$('#wc-tc-headline').text('We found issues.');$('#wc-tc-subline').text('Do you want to fix them now?');wcTcSetSteps('install');$overlay.removeClass('wc-results-active wc-pro-results-active').attr('aria-hidden','true');wcTcSetMode('standard');wcTcClearBackdrop();wcTcRestoreEditorHeight();});};BindSubmit=function(){$('._btncheck').off('click').on('click',function(e){e.preventDefault();e.stopPropagation();var textToCheck=wcGetEditorText();if(!textToCheck||textToCheck.length<2){alert(t('please_enter_more_text')||'Please enter more text to start the check');return false;}
2048var btnTarget=$(this).attr('target')||$(this).data('target')||'_blank';var isG1User=false;try{isG1User=!!((typeof window.IsGrammarlyEnabled==='function'&&window.IsGrammarlyEnabled())||localStorage.getItem('glyConfirmed')==='true');}catch(_){}
2049if(isG1User){if(wcTcHasConfirmedPro()){return false;}
2050if(textToCheck&&textToCheck.length>
2050MAX_CHARS_TC){return wcTcShowProLongDocumentPrompt(textToCheck);}
2051startTcProFlow(textToCheck,{source:'g1'});return false;}
2052if(textToCheck&&textToCheck.length>MAX_CHARS_TC){return wcTcShowLongTextInstallPrompt(textToCheck);}
2053startTcFlow(textToCheck);return false;});};$(document).ready(function(){wcEnsureTextCheckOverlay();wcTcMountOverlayIntoEditor();if(typeof BindSubmit==='function')BindSubmit();});})();;
2054/*!
2055 * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
2056 * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
2057 * Released under MIT License
2058 */
2059!function(A,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(A="undefined"!=typeof globalThis?globalThis:A||self).html2canvas=e()}(this,function(){"use strict";
2060/*! *****************************************************************************
2061    Copyright (c) Microsoft Corporation.
2062
2063    Permission to use, copy, modify, and/or distribute this software for any
2064    purpose with or without fee is hereby granted.
2065
2066    THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
2067    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
2068    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
2069    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
2070    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
2071    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2072    PERFORMANCE OF THIS SOFTWARE.
2073    ***************************************************************************** */
vendor: 11,836 bytes, line 2074
2074var r=function(A,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,e){A.__proto__=e}||function(A,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t])})(A,e)};function A(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=A}r(A,e),A.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)}var h=function(){return(h=Object.assign||function(A){for(var e,t=1,r=arguments.length;t<r;t++)for(var B in e=arguments[t])Object.prototype.hasOwnProperty.call(e,B)&&(A[B]=e[B]);return A}).apply(this,arguments)};function a(A,s,o,i){return new(o=o||Promise)(function(t,e){function r(A){try{n(i.next(A))}catch(A){e(A)}}function B(A){try{n(i.throw(A))}catch(A){e(A)}}function n(A){var e;A.done?t(A.value):((e=A.value)instanceof o?e:new o(function(A){A(e)})).then(r,B)}n((i=i.apply(A,s||[])).next())})}function H(t,r){var B,n,s,o={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},A={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(A[Symbol.iterator]=function(){return this}),A;function e(e){return function(A){return function(e){if(B)throw new TypeError("Generator is already executing.");for(;o;)try{if(B=1,n&&(s=2&e[0]?n.return:e[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,e[1])).done)return s;switch(n=0,(e=s?[2&e[0],s.value]:e)[0]){case 0:case 1:s=e;break;case 4:return o.label++,{value:e[1],done:!1};case 5:o.label++,n=e[1],e=[0];continue;case 7:e=o.ops.pop(),o.trys.pop();continue;default:if(!(s=0<(s=o.trys).length&&s[s.length-1])&&(6===e[0]||2===e[0])){o=0;continue}if(3===e[0]&&(!s||e[1]>s[0]&&e[1]<s[3])){o.label=e[1];break}if(6===e[0]&&o.label<s[1]){o.label=s[1],s=e;break}if(s&&o.label<s[2]){o.label=s[2],o.ops.push(e);break}s[2]&&o.ops.pop(),o.trys.pop();continue}e=r.call(t,o)}catch(A){e=[6,A],n=0}finally{B=s=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([e,A])}}}function t(A,e,t){if(t||2===arguments.length)for(var r,B=0,n=e.length;B<n;B++)!r&&B in e||((r=r||Array.prototype.slice.call(e,0,B))[B]=e[B]);return A.concat(r||e)}var d=(B.prototype.add=function(A,e,t,r){return new B(this.left+A,this.top+e,this.width+t,this.height+r)},B.fromClientRect=function(A,e){return new B(e.left+A.windowBounds.left,e.top+A.windowBounds.top,e.width,e.height)},B.fromDOMRectList=function(A,e){e=Array.from(e).find(function(A){return 0!==A.width});return e?new B(e.left+A.windowBounds.left,e.top+A.windowBounds.top,e.width,e.height):B.EMPTY},B.EMPTY=new B(0,0,0,0),B);function B(A,e,t,r){this.left=A,this.top=e,this.width=t,this.height=r}for(var f=function(A,e){return d.fromClientRect(A,e.getBoundingClientRect())},Q=function(A){for(var e=[],t=0,r=A.length;t<r;){var B,n=A.charCodeAt(t++);55296<=n&&n<=56319&&t<r?56320==(64512&(B=A.charCodeAt(t++)))?e.push(((1023&n)<<10)+(1023&B)+65536):(e.push(n),t--):e.push(n)}return e},g=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";for(var r=[],B=-1,n="";++B<t;){var s=A[B];s<=65535?r.push(s):(s-=65536,r.push(55296+(s>>10),s%1024+56320)),(B+1===t||16384<r.length)&&(n+=String.fromCharCode.apply(String,r),r.length=0)}return n},e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="undefined"==typeof Uint8Array?[]:new Uint8Array(256),s=0;s<e.length;s++)n[e.charCodeAt(s)]=s;for(var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c="undefined"==typeof Uint8Array?[]:new Uint8Array(256),i=0;i<o.length;i++)c[o.charCodeAt(i)]=i;function w(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))}var U=(l.prototype.get=function(A){var e;if(0<=A){if(A<55296||56319<A&&A<=65535)return e=this.index[A>>5],this.data[e=(e<<2)+(31&A)];if(A<=65535)return e=this.index[2048+(A-55296>>5)],this.data[e=(e<<2)+(31&A)];if(A<this.highStart)return e=this.index[e=2080+(A>>11)],e=this.index[e+=A>>5&63],this.data[e=(e<<2)+(31&A)];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},l);function l(A,e,t,r,B,n){this.initialValue=A,this.errorValue=e,this.highStart=t,this.highValueIndex=r,this.index=B,this.data=n}for(var C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u="undefined"==typeof Uint8Array?[]:new Uint8Array(256),F=0;F<C.length;F++)u[C.charCodeAt(F)]=F;function p(A,e,t,r){var B=r[t];if(Array.isArray(A)?-1!==A.indexOf(B):A===B)for(var n=t;n<=r.length;){if((o=r[++n])===e)return 1;if(o!==D)break}if(B===D)for(n=t;0<n;){var s=r[--n];if(Array.isArray(A)?-1!==A.indexOf(s):A===s)for(var o,i=t;i<=r.length;){if((o=r[++i])===e)return 1;if(o!==D)break}if(s!==D)break}}function E(A,e){for(var t=A;0<=t;){var r=e[t];if(r!==D)return r;t--}return 0}function I(t,A){var e=(B=function(A,r){void 0===r&&(r="strict");var B=[],n=[],s=[];return A.forEach(function(A,e){var t=rA.get(A);if(50<t?(s.push(!0),t-=50):s.push(!1),-1!==["normal","auto","loose"].indexOf(r)&&-1!==[8208,8211,12316,12448].indexOf(A))return n.push(e),B.push(16);if(4!==t&&11!==t)return n.push(e),31===t?B.push("strict"===r?O:q):t===AA||29===t?B.push(J):43===t?131072<=A&&A<=196605||196608<=A&&A<=262141?B.push(q):B.push(J):void B.push(t);if(0===e)return n.push(e),B.push(J);t=B[e-1];return-1===iA.indexOf(t)?(n.push(n[e-1]),B.push(t)):(n.push(e),B.push(J))}),[n,B,s]}(t,(A=A||{lineBreak:"normal",wordBreak:"normal"}).lineBreak))[0],r=B[1],B=B[2];return[e,r="break-all"===A.wordBreak||"break-word"===A.wordBreak?r.map(function(A){return-1!==[R,J,AA].indexOf(A)?q:A}):r,"keep-all"===A.wordBreak?B.map(function(A,e){return A&&19968<=t[e]&&t[e]<=40959}):void 0]}var y,K,m,L,b,D=10,v=13,x=15,M=17,S=18,T=19,G=20,O=21,V=22,k=24,R=25,N=26,P=27,X=28,J=30,Y=32,W=33,Z=34,_=35,q=37,j=38,z=39,$=40,AA=42,eA=[9001,65288],tA="×",rA=(m=function(A){var e,t,r,B,n=.75*A.length,s=A.length,o=0;"="===A[A.length-1]&&(n--,"="===A[A.length-2]&&n--);for(var n=new("undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?ArrayBuffer:Array)(n),i=Array.isArray(n)?n:new Uint8Array(n),Q=0;Q<s;Q+=4)e=c[A.charCodeAt(Q)],t=c[A.charCodeAt(Q+1)],r=c[A.charCodeAt(Q+2)],B=c[A.charCodeAt(Q+3)],i[o++]=e<<2|t>>4,i[o++]=(15&t)<<4|r>>2,i[o++]=(3&r)<<6|63&B;return n}(y="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCI
vendor: 4,489 bytes, line 2074
2074IIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sByw
vendor: 15,579 bytes, line 2074
2074HLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATw
vendor: 5,424 bytes, line 2074
2074BPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATw
vendor: 16,384 bytes, line 2074
2074BPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHg
vendor: 4,419 bytes, line 2074
2074AeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlA
vendor: 50,172 bytes, line 2074
2074CUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA=="),L=Array.isArray(m)?function(A){for(var e=A.length,t=[],r=0;r<e;r+=4)t.push(A[r+3]<<24|A[r+2]<<16|A[r+1]<<8|A[r]);return t}(m):new Uint32Array(m),b=Array.isArray(m)?function(A){for(var e=A.length,t=[],r=0;r<e;r+=2)t.push(A[r+1]<<8|A[r]);return t}(m):new Uint16Array(m),y=w(b,12,L[4]/2),K=2===L[5]?w(b,(24+L[4])/2):(m=L,b=Math.ceil((24+L[4])/4),m.slice?m.slice(b,K):new Uint32Array(Array.prototype.slice.call(m,b,K))),new U(L[0],L[1],L[2],L[3],y,K)),BA=[J,36],nA=[1,2,3,5],sA=[D,8],oA=[P,N],iA=nA.concat(sA),QA=[j,z,$,Z,_],cA=[x,v],aA=(gA.prototype.slice=function(){return g.apply(void 0,this.codePoints.slice(this.start,this.end))},gA);function gA(A,e,t,r){this.codePoints=A,this.required="!"===e,this.start=t,this.end=r}function wA(A,e){var t=Q(A),r=(e=I(t,e))[0],B=e[1],n=e[2],s=t.length,o=0,i=0;return{next:function(){if(s<=i)return{done:!0,value:null};for(var A=tA;i<s&&(A=function(A,e,t,r,B){if(0===t[r])return tA;var n=r-1;if(Array.isArray(B)&&!0===B[n])return tA;var s=n-1,o=1+n,i=e[n],r=0<=s?e[s]:0,B=e[o];if(2===i&&3===B)return tA;if(-1!==nA.indexOf(i))return"!";if(-1!==nA.indexOf(B))return tA;if(-1!==sA.indexOf(B))return tA;if(8===E(n,e))return"÷";if(11===rA.get(A[n]))return tA;if((i===Y||i===W)&&11===rA.get(A[o]))return tA;if(7===i||7===B)return tA;if(9===i)return tA;if(-1===[D,v,x].indexOf(i)&&9===B)return tA;if(-1!==[M,S,T,k,X].indexOf(B))return tA;if(E(n,e)===V)return tA;if(p(23,V,n,e))return tA;if(p([M,S],O,n,e))return tA;if(p(12,12,n,e))return tA;if(i===D)return"÷";if(23===i||23===B)return tA;if(16===B||16===i)return"÷";if(-1!==[v,x,O].indexOf(B)||14===i)return tA;if(36===r&&-1!==cA.indexOf(i))return tA;if(i===X&&36===B)return tA;if(B===G)return tA;if(-1!==BA.indexOf(B)&&i===R||-1!==BA.indexOf(i)&&B===R)return tA;if(i===P&&-1!==[q,Y,W].indexOf(B)||-1!==[q,Y,W].indexOf(i)&&B===N)return tA;if(-1!==BA.indexOf(i)&&-1!==oA.indexOf(B)||-1!==oA.indexOf(i)&&-1!==BA.indexOf(B))return tA;if(-1!==[P,N].indexOf(i)&&(B===R||-1!==[V,x].indexOf(B)&&e[1+o]===R)||-1!==[V,x].indexOf(i)&&B===R||i===R&&-1!==[R,X,k].indexOf(B))return tA;if(-1!==[R,X,k,M,S].indexOf(B))for(var Q=n;0<=Q;){if((c=e[Q])===R)return tA;if(-1===[X,k].indexOf(c))break;Q--}if(-1!==[P,N].indexOf(B))for(var c,Q=-1!==[M,S].indexOf(i)?s:n;0<=Q;){if((c=e[Q])===R)return tA;if(-1===[X,k].indexOf(c))break;Q--}if(j===i&&-1!==[j,z,Z,_].indexOf(B)||-1!==[z,Z].indexOf(i)&&-1!==[z,$].indexOf(B)||-1!==[$,_].indexOf(i)&&B===$)return tA;if(-1!==QA.indexOf(i)&&-1!==[G,N].indexOf(B)||-1!==QA.indexOf(B)&&i===P)return tA;if(-1!==BA.indexOf(i)&&-1!==BA.indexOf(B))return tA;if(i===k&&-1!==BA.indexOf(B))return tA;if(-1!==BA.concat(R).indexOf(i)&&B===V&&-1===eA.indexOf(A[o])||-1!==BA.concat(R).indexOf(B)&&i===S)return tA;if(41===i&&41===B){for(var a=t[n],g=1;0<a&&41===e[--a];)g++;if(g%2!=0)return tA}return i===Y&&B===W?tA:"÷"}(t,B,r,++i,n))===tA;);if(A===tA&&i!==s)return{done:!0,value:null};var e=new aA(t,A,o,i);return o=i,{value:e,done:!1}}}}function UA(A){return 48<=A&&A<=57}function lA(A){return UA(A)||65<=A&&A<=70||97<=A&&A<=102}function CA(A){return 10===A||9===A||32===A}function uA(A){return 97<=(t=e=A)&&t<=122||65<=(e=e)&&e<=90||128<=A||95===A;var e,t}function FA(A){return uA(A)||UA(A)||45===A}function hA(A,e){return 92===A&&10!==e}function dA(A,e,t){return 45===A?uA(e)||hA(e,t):!!uA(A)||92===A&&10!==e}function fA(A,e,t){return 43===A||45===A?!!UA(e)||46===e&&UA(t):UA(46===A?e:A)}var HA={type:2},pA={type:3},EA={type:4},IA={type:13},yA={type:8},KA={type:21},mA={type:9},LA={type:10},bA={type:11},DA={type:12},vA={type:14},xA={type:23},MA={type:1},SA={type:25},TA={type:24},GA={type:26},OA={type:27},VA={type:28},kA={type:29},RA={type:31},NA={type:32},PA=(XA.prototype.write=function(A){this._value=this._value.concat(Q(A))},XA.prototype.read=function(){for(var A=[],e=this.consumeToken();e!==NA;)A.push(e),e=this.consumeToken();return A},XA.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case 34:return this.consumeStringToken(34);case 35:var e=this.peekCodePoint(0),t=this.peekCodePoint(1),r=this.peekCodePoint(2);if(FA(e)||hA(t,r)){var B=dA(e,t,r)?2:1;return{type:5,value:this.consumeName(),flags:B}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),IA;break;case 39:return this.consumeStringToken(39);case 40:return HA;case 41:return pA;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),vA;break;case 43:if(fA(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case 44:return EA;case 45:var r=A,B=this.peekCodePoint(0),n=this.peekCodePoint(1);if(fA(r,B,n))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(dA(r,B,n))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(45===B&&62===n)return this.consumeCodePoint(),this.consumeCodePoint(),TA;break;case 46:if(fA(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var s=this.consumeCodePoint();if(42===s&&47===(s=this.consumeCodePoint()))return this.consumeToken();if(-1===s)return this.consumeToken()}break;case 58:return GA;case 59:return OA;case 60:if(33===this.peekCodePoint(0)&&45===this.peekCodePoint(1)&&45===this.peekCodePoint(2))return this.consumeCodePoint(),this.consumeCodePoint(),SA;break;case 64:var n=this.peekCodePoint(0),o=this.peekCodePoint(1),i=this.peekCodePoint(2);if(dA(n,o,i))return{type:7,value:this.consumeName()};break;case 91:return VA;case 92:if(hA(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case 93:return kA;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),yA;break;case 123:return bA;case 125:return DA;case 117:case 85:o=this.peekCodePoint(0),i=this.peekCodePoint(1);return 43!==o||!lA(i)&&63!==i||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),mA;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),KA;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),LA;break;case-1:return NA}return CA(A)?(this.consumeWhiteSpace(),RA):UA(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):uA(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:g(A)}},XA.prototype.consumeCodePoint=function(){var A=this._value.shift();return void 0===A?-1:A},XA.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},XA.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},XA.prototype.consumeUnicodeRangeToken=function(){for(var A=[],e=this.consumeCodePoint();lA(e)&&A.length<6;)A.push(e),e=this.consumeCodePoint();for(var t=!1;63===e&&A.length<6;)A.push(e),e=this.consumeCodePoint(),t=!0;if(t)return{type:30,start:parseInt(g.apply(void 0,A.map(function(A){return 63===A?48:A})),16),end:parseInt(g.apply(void 0,A.map(function(A){return 63===A?70:A})),16)};var r=parseInt(g.apply(void 0,A),16);if(45===this.peekCodePoint(0)&&lA(this.peekCodePoint(1))){this.consumeCodePoint();for(var e=this.consumeCodePoint(),B=[];lA(e)&&B.length<6;)B.push(e),e=this.consumeCodePoint();return{type:30,start:r,end:parseInt(g.apply(void 0,B),16)}}return{type:30,start:r,end:r}},XA.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return"url"===A.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},XA.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),-1===this.peekCodePoint(0))return{type:22,value:""};var e,t=this.peekCodePoint(0);if(39===t||34===t){t=this.consumeStringToken(this.consumeCodePoint());return 0===t.type&&(this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:t.value}):(this.consumeBadUrlRemnants(),xA)}for(;;){var r=this.consumeCodePoint();if(-1===r||41===r)return{type:22,value:g.apply(void 0,A)};if(CA(r))return this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:g.apply(void 0,A)}):(this.consumeBadUrlRemnants(),xA);if(34===r||39===r||40===r||(0<=(e=r)&&e<=8||11===e||14<=e&&e<=31||127===e))return this.consumeBadUrlRemnants(),xA;if(92===r){if(!hA(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),xA;A.push(this.consumeEscapedCodePoint())}else A.push(r)}},XA.prototype.consumeWhiteSpace=function(){for(;CA(this.peekCodePoint(0));)this.consumeCodePoint()},XA.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(41===A||-1===A)return;hA(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},XA.prototype.consumeStringSlice=function(A){for(var e="";0<A;){var t=Math.min(5e4,A);e+=g.apply(void 0,this._value.splice(0,t)),A-=t}return this._value.shift(),e},XA.prototype.consumeStringToken=function(A){for(var e="",t=0;;){var r,B=this._value[t];if(-1===B||void 0===B||B===A)return{type:0,value:e+=this.consumeStringSlice(t)};if(10===B)return this._value.splice(0,t),MA;92!==B||-1!==(r=this._value[t+1])&&void 0!==r&&(10===r?(e+=this.consumeStringSlice(t),t=-1,this._value.shift()):hA(B,r)&&(e+=this.consumeStringSlice(t),e+=g(this.consumeEscapedCodePoint()),t=-1)),t++}},XA.prototype.consumeNumber=function(){var A=[],e=4;for(43!==(t=this.peekCodePoint(0))&&45!==t||A.push(this.consumeCodePoint());UA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());var t=this.peekCodePoint(0),r=this.peekCodePoint(1);if(46===t&&UA(r))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;UA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0);var r=this.peekCodePoint(1),B=this.peekCodePoint(2);if((69===t||101===t)&&((43===r||45===r)&&UA(B)||UA(r)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;UA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[function(A){var e=0,t=1;43!==A[e]&&45!==A[e]||(45===A[e]&&(t=-1),e++);for(var r=[];UA(A[e]);)r.push(A[e++]);var B=r.length?parseInt(g.apply(void 0,r),10):0;46===A[e]&&e++;for(var n=[];UA(A[e]);)n.push(A[e++]);var s=n.length,o=s?parseInt(g.apply(void 0,n),10):0;69!==A[e]&&101!==A[e]||e++;var i=1;43!==A[e]&&45!==A[e]||(45===A[e]&&(i=-1),e++);for(var Q=[];UA(A[e]);)Q.push(A[e++]);var c=Q.length?parseInt(g.apply(void 0,Q),10):0;return t*(B+o*Math.pow(10,-s))*Math.pow(10,i*c)}(A),e]},XA.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),e=A[0],t=A[1],r=this.peekCodePoint(0),B=this.peekCodePoint(1),A=this.peekCodePoint(2);return dA(r,B,A)?{type:15,number:e,flags:t,unit:this.consumeName()}:37===r?(this.consumeCodePoint(),{type:16,number:e,flags:t}):{type:17,number:e,flags:t}},XA.prototype.consumeEscapedCodePoint=function(){var A,e=this.consumeCodePoint();if(lA(e)){for(var t=g(e);lA(this.peekCodePoint(0))&&t.length<6;)t+=g(this.consumeCodePoint());CA(this.peekCodePoint(0))&&this.consumeCodePoint();var r=parseInt(t,16);return 0===r||55296<=(A=r)&&A<=57343||1114111<r?65533:r}return-1===e?65533:e},XA.prototype.consumeName=function(){for(var A="";;){var e=this.consumeCodePoint();if(FA(e))A+=g(e);else{if(!hA(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),A;A+=g(this.consumeEscapedCodePoint())}}},XA);function XA(){this._value=[]}var JA=(YA.create=function(A){var e=new PA;return e.write(A),new YA(e.read())},YA.parseValue=function(A){return YA.create(A).parseComponentValue()},YA.parseValues=function(A){return YA.create(A).parseComponentValues()},YA.prototype.parseComponentValue=function(){for(var A=this.consumeToken();31===A.type;)A=this.consumeToken();if(32===A.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);for(var e=this.consumeComponentValue();31===(A=this.consumeToken()).type;);if(32===A.type)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},YA.prototype.parseComponentValues=function(){for(var A=[];;){var e=this.consumeComponentValue();if(32===e.type)return A;A.push(e),A.push()}},YA.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},YA.prototype.consumeSimpleBlock=function(A){for(var e={type:A,values:[]},t=this.consumeToken();;){if(32===t.type||ce(t,A))return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue()),t=this.consumeToken()}},YA.prototype.consumeFunction=function(A){for(var e={name:A.value,values:[],type:18};;){var t=this.consumeToken();if(32===t.type||3===t.type)return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue())}},YA.prototype.consumeToken=function(){var A=this._tokens.shift();return void 0===A?NA:A},YA.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},YA);function YA(A){this._tokens=A}function WA(A){return 15===A.type}function ZA(A){return 17===A.type}function _A(A){return 20===A.type}function qA(A){return 0===A.type}function jA(A,e){return _A(A)&&A.value===e}function zA(A){return 31!==A.type}function $A(A){return 31!==A.type&&4!==A.type}function Ae(A){var e=[],t=[];return A.forEach(function(A){if(4===A.type){if(0===t.length)throw new Error("Error parsing function args, zero tokens for arg");return e.push(t),void(t=[])}31!==A.type&&t.push(A)}),t.length&&e.push(t),e}function ee(A){return 17===A.type||15===A.type}function te(A){return 16===A.type||ee(A)}function re(A){return 1<A.length?[A[0],A[1]]:[A[0]]}function Be(A,e,t){var r=A[0],A=A[1];return[Ue(r,e),Ue(void 0!==A?A:r,t)]}function ne(A){return 15===A.type&&("deg"===A.unit||"grad"===A.unit||"rad"===A.unit||"turn"===A.unit)}function se(A){switch(A.filter(_A).map(function(A){return A.value}).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[ae,ae];case"to top":case"bottom":return Ce(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[ae,we];case"to right":case"left":return Ce(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[we,we];case"to bottom":case"top":return Ce(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[we,ae];case"to left":case"right":return Ce(270)}return 0}function oe(A){return 0==(255&A)}function ie(A){var e=255&A,t=255&A>>8,r=255&A>>16,A=255&A>>24;return e<255?"rgba("+A+","+r+","+t+","+e/255+")":"rgb("+A+","+r+","+t+")"}function Qe(A,e){if(17===A.type)return A.number;if(16!==A.type)return 0;var t=3===e?1:255;return 3===e?A.number/100*t:Math.round(A.number/100*t)}var ce=function(A,e){return 11===e&&12===A.type||(28===e&&29===A.type||2===e&&3===A.type)},ae={type:17,number:0,flags:4},ge={type:16,number:50,flags:4},we={type:16,number:100,flags:4},Ue=function(A,e){if(16===A.type)return A.number/100*e;if(WA(A))switch(A.unit){case"rem":case"em":return 16*A.number;default:return A.number}return A.number},le=function(A,e){if(15===e.type)switch(e.unit){case"deg":return Math.PI*e.number/180;case"grad":return Math.PI/200*e.number;case"rad":return e.number;case"turn":return 2*Math.PI*e.number}throw new Error("Unsupported angle type")},Ce=function(A){return Math.PI*A/180},ue=function(A,e){if(18===e.type){var t=me[e.name];if(void 0===t)throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return t(A,e.values)}if(5===e.type){if(3===e.value.length){var r=e.value.substring(0,1),B=e.value.substring(1,2),n=e.value.substring(2,3);return Fe(parseInt(r+r,16),parseInt(B+B,16),parseInt(n+n,16),1)}if(4===e.value.length){var r=e.value.substring(0,1),B=e.value.substring(1,2),n=e.value.substring(2,3),s=e.value.substring(3,4);return Fe(parseInt(r+r,16),parseInt(B+B,16),parseInt(n+n,16),parseInt(s+s,16)/255)}if(6===e.value.length){r=e.value.substring(0,2),B=e.value.substring(2,4),n=e.value.substring(4,6);return Fe(parseInt(r,16),parseInt(B,16),parseInt(n,16),1)}if(8===e.value.length){r=e.value.substring(0,2),B=e.value.substring(2,4),n=e.value.substring(4,6),s=e.value.substring(6,8);return Fe(parseInt(r,16),parseInt(B,16),parseInt(n,16),parseInt(s,16)/255)}}if(20===e.type){e=Le[e.value.toUpperCase()];if(void 0!==e)return e}return Le.TRANSPARENT},Fe=function(A,e,t,r){return(A<<24|e<<16|t<<8|Math.round(255*r)<<0)>>>0},he=function(A,e){e=e.filter($A);if(3===e.length){var t=e.map(Qe),r=t[0],B=t[1],t=t[2];return Fe(r,B,t,1)}if(4!==e.length)return 0;e=e.map(Qe),r=e[0],B=e[1],t=e[2],e=e[3];return Fe(r,B,t,e)};function de(A,e,t){return t<0&&(t+=1),1<=t&&--t,t<1/6?(e-A)*t*6+A:t<.5?e:t<2/3?6*(e-A)*(2/3-t)+A:A}function fe(A,e){return ue(A,JA.create(e).parseComponentValue())}function He(A,e){return A=ue(A,e[0]),(e=e[1])&&te(e)?{color:A,stop:e}:{color:A,stop:null}}function pe(A,t){var e=A[0],r=A[A.length-1];null===e.stop&&(e.stop=ae),null===r.stop&&(r.stop=we);for(var B=[],n=0,s=0;s<A.length;s++){var o=A[s].stop;null!==o?(n<(o=Ue(o,t))?B.push(o):B.push(n),n=o):B.push(null)}for(var i=null,s=0;s<B.length;s++){var Q=B[s];if(null===Q)null===i&&(i=s);else if(null!==i){for(var c=s-i,a=(Q-B[i-1])/(1+c),g=1;g<=c;g++)B[i+g-1]=a*g;i=null}}return A.map(function(A,e){return{color:A.color,stop:Math.max(Math.min(1,B[e]/t),0)}})}function Ee(A,e,t){var r="number"==typeof A?A:(s=e/2,r=(n=t)/2,s=Ue((B=A)[0],e)-s,n=r-Ue(B[1],n),(Math.atan2(n,s)+2*Math.PI)%(2*Math.PI)),B=Math.abs(e*Math.sin(r))+Math.abs(t*Math.cos(r)),n=e/2,s=t/2,e=B/2,t=Math.sin(r-Math.PI/2)*e,e=Math.cos(r-Math.PI/2)*e;return[B,n-e,n+e,s-t,s+t]}function Ie(A,e){return Math.sqrt(A*A+e*e)}function ye(A,e,B,n,s){return[[0,0],[0,e],[A,0],[A,e]].reduce(function(A,e){var t=e[0],r=e[1],r=Ie(B-t,n-r);return(s?r<A.optimumDistance:r>A.optimumDistance)?{optimumCorner:e,optimumDistance:r}:A},{optimumDistance:s?1/0:-1/0,optimumCorner:null}).optimumCorner}var Ke=function(A,e){var t=e.filter($A),r=t[0],B=t[1],n=t[2],e=t[3],t=(17===r.type?Ce(r.number):le(A,r))/(2*Math.PI),A=te(B)?B.number/100:0,r=te(n)?n.number/100:0,B=void 0!==e&&te(e)?Ue(e,1):1;if(0==A)return Fe(255*r,255*r,255*r,1);n=r<=.5?r*(1+A):r+A-r*A,e=2*r-n,A=de(e,n,t+1/3),r=de(e,n,t),t=de(e,n,t-1/3);return Fe(255*A,255*r,255*t,B)},me={hsl:Ke,hsla:Ke,rgb:he,rgba:he},Le={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},be={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map(function(A){if(_A(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},De={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ke=function(t,A){var r=Ce(180),B=[];return Ae(A).forEach(function(A,e){if(0===e){e=A[0];if(20===e.type&&-1!==["top","left","right","bottom"].indexOf(e.value))return void(r=se(A));if(ne(e))return void(r=(le(t,e)+Ce(270))%Ce(360))}A=He(t,A);B.push(A)}),{angle:r,stops:B,type:1}},ve="closest-side",xe="farthest-side",Me="closest-corner",Se="farthest-corner",Te="ellipse",Ge="contain",he=function(r,A){var B=0,n=3,s=[],o=[];return Ae(A).forEach(function(A,e){var t=!0;0===e?t=A.reduce(function(A,e){if(_A(e))switch(e.value){case"center":return o.push(ge),!1;case"top":case"left":return o.push(ae),!1;case"right":case"bottom":return o.push(we),!1}else if(te(e)||ee(e))return o.push(e),!1;return A},t):1===e&&(t=A.reduce(function(A,e){if(_A(e))switch(e.value){case"circle":return B=0,!1;case Te:return!(B=1);case Ge:case ve:return n=0,!1;case xe:return!(n=1);case Me:return!(n=2);case"cover":case Se:return!(n=3)}else if(ee(e)||te(e))return(n=!Array.isArray(n)?[]:n).push(e),!1;return A},t)),t&&(A=He(r,A),s.push(A))}),{size:n,shape:B,stops:s,position:o,type:2}},Oe=function(A,e){if(22===e.type){var t={url:e.value,type:0};return A.cache.addImage(e.value),t}if(18!==e.type)throw new Error("Unsupported image type "+e.type);t=ke[e.name];if(void 0===t)throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return t(A,e.values)};var Ve,ke={"linear-gradient":function(t,A){var r=Ce(180),B=[];return Ae(A).forEach(function(A,e){if(0===e){e=A[0];if(20===e.type&&"to"===e.value)return void(r=se(A));if(ne(e))return void(r=le(t,e))}A=He(t,A);B.push(A)}),{angle:r,stops:B,type:1}},"-moz-linear-gradient":Ke,"-ms-linear-gradient":Ke,"-o-linear-gradient":Ke,"-webkit-linear-gradient":Ke,"radial-gradient":function(B,A){var n=0,s=3,o=[],i=[];return Ae(A).forEach(function(A,e){var t,r=!0;0===e&&(t=!1,r=A.reduce(function(A,e){if(t)if(_A(e))switch(e.value){case"center":return i.push(ge),A;case"top":case"left":return i.push(ae),A;case"right":case"bottom":return i.push(we),A}else(te(e)||ee(e))&&i.push(e);else if(_A(e))switch(e.value){case"circle":return n=0,!1;case Te:return!(n=1);case"at":return!(t=!0);case ve:return s=0,!1;case"cover":case xe:return!(s=1);case Ge:case Me:return!(s=2);case Se:return!(s=3)}else if(ee(e)||te(e))return(s=!Array.isArray(s)?[]:s).push(e),!1;return A},r)),r&&(A=He(B,A),o.push(A))}),{size:s,shape:n,stops:o,position:i,type:2}},"-moz-radial-gradient":he,"-ms-radial-gradient":he,"-o-radial-gradient":he,"-webkit-radial-gradient":he,"-webkit-gradient":function(r,A){var e=Ce(180),B=[],n=1;return Ae(A).forEach(function(A,e){var t,A=A[0];if(0===e){if(_A(A)&&"linear"===A.value)return void(n=1);if(_A(A)&&"radial"===A.value)return void(n=2)}18===A.type&&("from"===A.name?(t=ue(r,A.values[0]),B.push({stop:ae,color:t})):"to"===A.name?(t=ue(r,A.values[0]),B.push({stop:we,color:t})):"color-stop"!==A.name||2===(A=A.values.filter($A)).length&&(t=ue(r,A[1]),A=A[0],ZA(A)&&B.push({stop:{type:16,number:100*A.number,flags:A.flags},color:t})))}),1===n?{angle:(e+Ce(180))%Ce(360),stops:B,type:n}:{size:3,shape:0,stops:B,position:[],type:n}}},Re={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,A){if(0===A.length)return[];var t=A[0];return 20===t.type&&"none"===t.value?[]:A.filter(function(A){return $A(A)&&!(20===(A=A).type&&"none"===A.value||18===A.type&&!ke[A.name])}).map(function(A){return Oe(e,A)})}},Ne={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map(function(A){if(_A(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Pe={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(A,e){return Ae(e).map(function(A){return A.filter(te)}).map(re)}},Xe={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(A,e){return Ae(e).map(function(A){return A.filter(_A).map(function(A){return A.value}).join(" ")}).map(Je)}},Je=function(A){switch(A){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}};(he=Ve=Ve||{}).AUTO="auto",he.CONTAIN="contain";function Ye(A,e){return _A(A)&&"normal"===A.value?1.2*e:17===A.type?e*A.number:te(A)?Ue(A,e):e}var We,Ze,_e={name:"background-size",initialValue:"0",prefix:!(he.COVER="cover"),type:1,parse:function(A,e){return Ae(e).map(function(A){return A.filter(qe)})}},qe=function(A){return _A(A)||te(A)},he=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},je=he("top"),ze=he("right"),$e=he("bottom"),At=he("left"),he=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:1,parse:function(A,e){return re(e.filter(te))}}},et=he("top-left"),tt=he("top-right"),rt=he("bottom-right"),Bt=he("bottom-left"),he=function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,e){switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},nt=he("top"),st=he("right"),ot=he("bottom"),it=he("left"),he=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return WA(e)?e.number:0}}},Qt=he("top"),ct=he("right"),at=he("bottom"),gt=he("left"),wt={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ut={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(A,e){return"rtl"!==e?0:1}},lt={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(A,e){return e.filter(_A).reduce(function(A,e){return A|Ct(e.value)},0)}},Ct=function(A){switch(A){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},ut={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Ft={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(A,e){return!(20===e.type&&"normal"===e.value||17!==e.type&&15!==e.type)?e.number:0}},ht={name:"line-break",initialValue:(he=We=We||{}).NORMAL="normal",prefix:!(he.STRICT="strict"),type:2,parse:function(A,e){return"strict"!==e?We.NORMAL:We.STRICT}},dt={name:"line-height",initialValue:"normal",prefix:!1,type:4},ft={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(A,e){return 20===e.type&&"none"===e.value?null:Oe(A,e)}},Ht={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(A,e){return"inside"!==e?1:0}},pt={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},he=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:4}},Et=he("top"),It=he("right"),yt=he("bottom"),Kt=he("left"),mt={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(A,e){return e.filter(_A).map(function(A){switch(A.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},Lt={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){return"break-word"!==e?"normal":"break-word"}},he=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},bt=he("top"),Dt=he("right"),vt=he("bottom"),xt=he("left"),Mt={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(A,e){switch(e){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},St={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(A,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Tt={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(n,A){return 1===A.length&&jA(A[0],"none")?[]:Ae(A).map(function(A){for(var e={color:Le.TRANSPARENT,offsetX:ae,offsetY:ae,blur:ae},t=0,r=0;r<A.length;r++){var B=A[r];ee(B)?(0===t?e.offsetX=B:1===t?e.offsetY=B:e.blur=B,t++):e.color=ue(n,B)}return e})}},Gt={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Ot={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(A,e){if(20===e.type&&"none"===e.value)return null;if(18!==e.type)return null;var t=Vt[e.name];if(void 0===t)throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return t(e.values)}},Vt={matrix:function(A){A=A.filter(function(A){return 17===A.type}).map(function(A){return A.number});return 6===A.length?A:null},matrix3d:function(A){var e=A.filter(function(A){return 17===A.type}).map(function(A){return A.number}),t=e[0],r=e[1];e[2],e[3];var B=e[4],n=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var s=e[12],A=e[13];return e[14],e[15],16===e.length?[t,r,B,n,s,A]:null}},he={type:16,number:50,flags:4},kt=[he,he],Rt={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(A,e){e=e.filter(te);return 2!==e.length?kt:[e[0],e[1]]}},Nt={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"hidden":return 1;case"collapse":return 2;default:return 0}}};(he=Ze=Ze||{}).NORMAL="normal",he.BREAK_ALL="break-all";function Pt(A,e){return 0!=(A&e)}function Xt(A,e,t){return(A=A&&A[Math.min(e,A.length-1)])?t?A.open:A.close:""}var Jt={name:"word-break",initialValue:"normal",prefix:!(he.KEEP_ALL="keep-all"),type:2,parse:function(A,e){switch(e){case"break-all":return Ze.BREAK_ALL;case"keep-all":return Ze.KEEP_ALL;default:return Ze.NORMAL}}},Yt={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(A,e){if(20===e.type)return{auto:!0,order:0};if(ZA(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},Wt=function(A,e){if(15===e.type)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")},Zt={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(A,e){return ZA(e)?e.number:1}},_t={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},qt={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(A,e){return e.filter(_A).map(function(A){switch(A.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(A){return 0!==A})}},jt={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(A,e){var t=[],r=[];return e.forEach(function(A){switch(A.type){case 20:case 0:t.push(A.value);break;case 17:t.push(A.number.toString());break;case 4:r.push(t.join(" ")),t.length=0}}),t.length&&r.push(t.join(" ")),r.map(function(A){return-1===A.indexOf(" ")?A:"'"+A+"'"})}},zt={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},$t={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(A,e){return ZA(e)?e.number:!_A(e)||"bold"!==e.value?400:700}},Ar={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return e.filter(_A).map(function(A){return A.value})}},er={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},tr={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(A,e){if(0===e.length)return[];var t=e[0];return 20===t.type&&"none"===t.value?[]:e}},rr={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(0===e.length)return null;var t=e[0];if(20===t.type&&"none"===t.value)return null;for(var r=[],B=e.filter(zA),n=0;n<B.length;n++){var s=B[n],o=B[n+1];20===s.type&&(o=o&&ZA(o)?o.number:1,r.push({counter:s.value,increment:o}))}return r}},Br={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(0===e.length)return[];for(var t=[],r=e.filter(zA),B=0;B<r.length;B++){var n=r[B],s=r[B+1];_A(n)&&"none"!==n.value&&(s=s&&ZA(s)?s.number:0,t.push({counter:n.value,reset:s}))}return t}},nr={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,A){return A.filter(WA).map(function(A){return Wt(e,A)})}},sr={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(0===e.length)return null;var t=e[0];if(20===t.type&&"none"===t.value)return null;var r=[],B=e.filter(qA);if(B.length%2!=0)return null;for(var n=0;n<B.length;n+=2){var s=B[n].value,o=B[n+1].value;r.push({open:s,close:o})}return r}},or={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(n,A){return 1===A.length&&jA(A[0],"none")?[]:Ae(A).map(function(A){for(var e={color:255,offsetX:ae,offsetY:ae,blur:ae,spread:ae,inset:!1},t=0,r=0;r<A.length;r++){var B=A[r];jA(B,"inset")?e.inset=!0:ee(B)?(0===t?e.offsetX=B:1===t?e.offsetY=B:2===t?e.blur=B:e.spread=B,t++):e.color=ue(n,B)}return e})}},ir={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(A,e){var t=[];return e.filter(_A).forEach(function(A){switch(A.value){case"stroke":t.push(1);break;case"fill":t.push(0);break;case"markers":t.push(2)}}),[0,1,2].forEach(function(A){-1===t.indexOf(A)&&t.push(A)}),t}},Qr={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},cr={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return WA(e)?e.number:0}},ar=(gr.prototype.isVisible=function(){return 0<this.display&&0<this.opacity&&0===this.visibility},gr.prototype.isTransparent=function(){return oe(this.backgroundColor)},gr.prototype.isTransformed=function(){return null!==this.transform},gr.prototype.isPositioned=function(){return 0!==this.position},gr.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},gr.prototype.isFloating=function(){return 0!==this.float},gr.prototype.isInlineLevel=function(){return Pt(this.display,4)||Pt(this.display,33554432)||Pt(this.display,268435456)||Pt(this.display,536870912)||Pt(this.display,67108864)||Pt(this.display,134217728)},gr);function gr(A,e){this.animationDuration=lr(A,nr,e.animationDuration),this.backgroundClip=lr(A,be,e.backgroundClip),this.backgroundColor=lr(A,De,e.backgroundColor),this.backgroundImage=lr(A,Re,e.backgroundImage),this.backgroundOrigin=lr(A,Ne,e.backgroundOrigin),this.backgroundPosition=lr(A,Pe,e.backgroundPosition),this.backgroundRepeat=lr(A,Xe,e.backgroundRepeat),this.backgroundSize=lr(A,_e,e.backgroundSize),this.borderTopColor=lr(A,je,e.borderTopColor),this.borderRightColor=lr(A,ze,e.borderRightColor),this.borderBottomColor=lr(A,$e,e.borderBottomColor),this.borderLeftColor=lr(A,At,e.borderLeftColor),this.borderTopLeftRadius=lr(A,et,e.borderTopLeftRadius),this.borderTopRightRadius=lr(A,tt,e.borderTopRightRadius),this.borderBottomRightRadius=lr(A,rt,e.borderBottomRightRadius),this.borderBottomLeftRadius=lr(A,Bt,e.borderBottomLeftRadius),this.borderTopStyle=lr(A,nt,e.borderTopStyle),this.borderRightStyle=lr(A,st,e.borderRightStyle),this.borderBottomStyle=lr(A,ot,e.borderBottomStyle),this.borderLeftStyle=lr(A,it,e.borderLeftStyle),this.borderTopWidth=lr(A,Qt,e.borderTopWidth),this.borderRightWidth=lr(A,ct,e.borderRightWidth),this.borderBottomWidth=lr(A,at,e.borderBottomWidth),this.borderLeftWidth=lr(A,gt,e.borderLeftWidth),this.boxShadow=lr(A,or,e.boxShadow),this.color=lr(A,wt,e.color),this.direction=lr(A,Ut,e.direction),this.display=lr(A,lt,e.display),this.float=lr(A,ut,e.cssFloat),this.fontFamily=lr(A,jt,e.fontFamily),this.fontSize=lr(A,zt,e.fontSize),this.fontStyle=lr(A,er,e.fontStyle),this.fontVariant=lr(A,Ar,e.fontVariant),this.fontWeight=lr(A,$t,e.fontWeight),this.letterSpacing=lr(A,Ft,e.letterSpacing),this.lineBreak=lr(A,ht,e.lineBreak),this.lineHeight=lr(A,dt,e.lineHeight),this.listStyleImage=lr(A,ft,e.listStyleImage),this.listStylePosition=lr(A,Ht,e.listStylePosition),this.listStyleType=lr(A,pt,e.listStyleType),this.marginTop=lr(A,Et,e.marginTop),this.marginRight=lr(A,It,e.marginRight),this.marginBottom=lr(A,yt,e.marginBottom),this.marginLeft=lr(A,Kt,e.marginLeft),this.opacity=lr(A,Zt,e.opacity);var t=lr(A,mt,e.overflow);this.overflowX=t[0],this.overflowY=t[1<t.length?1:0],this.overflowWrap=lr(A,Lt,e.overflowWrap),this.paddingTop=lr(A,bt,e.paddingTop),this.paddingRight=lr(A,Dt,e.paddingRight),this.paddingBottom=lr(A,vt,e.paddingBottom),this.paddingLeft=lr(A,xt,e.paddingLeft),this.paintOrder=lr(A,ir,e.paintOrder),this.position=lr(A,St,e.position),this.textAlign=lr(A,Mt,e.textAlign),this.textDecorationColor=lr(A,_t,null!==(t=e.textDecorationColor)&&void 0!==t?t:e.color),this.textDecorationLine=lr(A,qt,null!==(t=e.textDecorationLine)&&void 0!==t?t:e.textDecoration),this.textShadow=lr(A,Tt,e.textShadow),this.textTransform=lr(A,Gt,e.textTransform),this.transform=lr(A,Ot,e.transform),this.transformOrigin=lr(A,Rt,e.transformOrigin),this.visibility=lr(A,Nt,e.visibility),this.webkitTextStrokeColor=lr(A,Qr,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=lr(A,cr,e.webkitTextStrokeWidth),this.wordBreak=lr(A,Jt,e.wordBreak),this.zIndex=lr(A,Yt,e.zIndex)}for(var wr=function(A,e){this.content=lr(A,tr,e.content),this.quotes=lr(A,sr,e.quotes)},Ur=function(A,e){this.counterIncrement=lr(A,rr,e.counterIncrement),this.counterReset=lr(A,Br,e.counterReset)},lr=function(A,e,t){var r=new PA,t=null!=t?t.toString():e.initialValue;r.write(t);var B=new JA(r.read());switch(e.type){case 2:var n=B.parseComponentValue();return e.parse(A,_A(n)?n.value:e.initialValue);case 0:return e.parse(A,B.parseComponentValue());case 1:return e.parse(A,B.parseComponentValues());case 4:return B.parseComponentValue();case 3:switch(e.format){case"angle":return le(A,B.parseComponentValue());case"color":return ue(A,B.parseComponentValue());case"image":return Oe(A,B.parseComponentValue());case"length":var s=B.parseComponentValue();return ee(s)?s:ae;case"length-percentage":s=B.parseComponentValue();return te(s)?s:ae;case"time":return Wt(A,B.parseComponentValue())}}},Cr=function(A,e){A=function(A){switch(A.getAttribute("data-html2canvas-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}}(A);return 1===A||e===A},ur=function(A,e){this.context=A,this.textNodes=[],this.elements=[],this.flags=0,Cr(e,3),this.styles=new ar(A,window.getComputedStyle(e,null)),JB(e)&&(this.styles.animationDuration.some(function(A){return 0<A})&&(e.style.animationDuration="0s"),null!==this.styles.transform&&(e.style.transform="none")),this.bounds=f(this.context,e),Cr(e,4)&&(this.flags|=16)},Fr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",hr="undefined"==typeof Uint8Array?[]:new Uint8Array(256),dr=0;dr<Fr.length;dr++)hr[Fr.charCodeAt(dr)]=dr;function fr(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))}var Hr=(pr.prototype.get=function(A){var e;if(0<=A){if(A<55296||56319<A&&A<=65535)return e=this.index[A>>5],this.data[e=(e<<2)+(31&A)];if(A<=65535)return e=this.index[2048+(A-55296>>5)],this.data[e=(e<<2)+(31&A)];if(A<this.highStart)return e=this.index[e=2080+(A>>11)],e=this.index[e+=A>>5&63],this.data[e=(e<<2)+(31&A)];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},pr);function pr(A,e,t,r,B,n){this.initialValue=A,this.errorValue=e,this.highStart=t,this.highValueIndex=r,this.index=B,this.data=n}for(var Er="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ir="undefined"==typeof Uint8Array?[]:new Uint8Array(256),yr=0;yr<Er.length;yr++)Ir[Er.charCodeAt(yr)]=yr;function Kr(A){return kr.get(A)}function mr(A){var t=function(A){for(var e=[],t=0,r=A.length;t<r;){var B,n=A.charCodeAt(t++);55296<=n&&n<=56319&&t<r?56320==(64512&(B=A.charCodeAt(t++)))?e.push(((1023&n)<<10)+(1023&B)+65536):(e.push(n),t--):e.push(n)}return e}(A),r=t.length,B=0,n=0,s=t.map(Kr);return{next:function(){if(r<=B)return{done:!0,value:null};for(var A=Rr;B<r&&(A=function(A,e){var t=e-2,r=A[t],B=A[e-1],e=A[e];if(2===B&&3===e)return Rr;if(2===B||3===B||4===B)return"÷";if(2===e||3===e||4===e)return"÷";if(B===Tr&&-1!==[Tr,Gr,Or,Vr].indexOf(e))return Rr;if(!(B!==Or&&B!==Gr||e!==Gr&&10!==e))return Rr;if((B===Vr||10===B)&&10===e)return Rr;if(13===e||5===e)return Rr;if(7===e)return Rr;if(1===B)return Rr;if(13===B&&14===e){for(;5===r;)r=A[--t];if(14===r)return Rr}if(15===B&&15===e){for(var n=0;15===r;)n++,r=A[--t];if(n%2==0)return Rr}return"÷"}(s,++B))===Rr;);if(A===Rr&&B!==r)return{done:!0,value:null};var e=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";for(var r=[],B=-1,n="";++B<t;){var s=A[B];s<=65535?r.push(s):(s-=65536,r.push(55296+(s>>10),s%1024+56320)),(B+1===t||16384<r.length)&&(n+=String.fromCharCode.apply(String,r),r.length=0)}return n}.apply(null,t.slice(n,B));return n=B,{value:e,done:!1}}}}function Lr(A){return 0===A[0]&&255===A[1]&&0===A[2]&&255===A[3]}var br,Dr,vr,xr,Mr,Sr,Tr=8,Gr=9,Or=11,Vr=12,kr=(vr=function(A){var e,t,r,B,n=.75*A.length,s=A.length,o=0;"="===A[A.length-1]&&(n--,"="===A[A.length-2]&&n--);for(var n=new("undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?ArrayBuffer:Array)(n),i=Array.isArray(n)?n:new Uint8Array(n),Q=0;Q<s;Q+=4)e=hr[A.charCodeAt(Q)],t=hr[A.charCodeAt(Q+1)],r=hr[A.charCodeAt(Q+2)],B=hr[A.charCodeAt(Q+3)],i[o++]=e<<2|t>>4,i[o++]=(15&t)<<4|r>>2,i[o++]=(3&r)<<6|63&B;return n}(br="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQ
vendor: 9,578 bytes, line 2074
2074FNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAB
vendor: 4,880 bytes, line 2074
2074QAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAAB
vendor: 74,685 bytes, line 2074
2074QAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA="),xr=Array.isArray(vr)?function(A){for(var e=A.length,t=[],r=0;r<e;r+=4)t.push(A[r+3]<<24|A[r+2]<<16|A[r+1]<<8|A[r]);return t}(vr):new Uint32Array(vr),Mr=Array.isArray(vr)?function(A){for(var e=A.length,t=[],r=0;r<e;r+=2)t.push(A[r+1]<<8|A[r]);return t}(vr):new Uint16Array(vr),br=fr(Mr,12,xr[4]/2),Dr=2===xr[5]?fr(Mr,(24+xr[4])/2):(vr=xr,Mr=Math.ceil((24+xr[4])/4),vr.slice?vr.slice(Mr,Dr):new Uint32Array(Array.prototype.slice.call(vr,Mr,Dr))),new Hr(xr[0],xr[1],xr[2],xr[3],br,Dr)),Rr="×",Nr=function(A,e,t,r,B){var n="http://www.w3.org/2000/svg",s=document.createElementNS(n,"svg"),n=document.createElementNS(n,"foreignObject");return s.setAttributeNS(null,"width",A.toString()),s.setAttributeNS(null,"height",e.toString()),n.setAttributeNS(null,"width","100%"),n.setAttributeNS(null,"height","100%"),n.setAttributeNS(null,"x",t.toString()),n.setAttributeNS(null,"y",r.toString()),n.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(n),n.appendChild(B),s},Pr=function(r){return new Promise(function(A,e){var t=new Image;t.onload=function(){return A(t)},t.onerror=e,t.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(r))})},Xr={get SUPPORT_RANGE_BOUNDS(){var A=function(A){if(A.createRange){var e=A.createRange();if(e.getBoundingClientRect){var t=A.createElement("boundtest");t.style.height="123px",t.style.display="block",A.body.appendChild(t),e.selectNode(t);e=e.getBoundingClientRect(),e=Math.round(e.height);if(A.body.removeChild(t),123===e)return!0}}return!1}(document);return Object.defineProperty(Xr,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_WORD_BREAKING(){var A=Xr.SUPPORT_RANGE_BOUNDS&&function(A){var e=A.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",A.body.appendChild(e);var r=A.createRange();e.innerHTML="function"==typeof"".repeat?"&#128104;".repeat(10):"";var B=e.firstChild,t=Q(B.data).map(function(A){return g(A)}),n=0,s={},t=t.every(function(A,e){r.setStart(B,n),r.setEnd(B,n+A.length);var t=r.getBoundingClientRect();n+=A.length;A=t.x>s.x||t.y>s.y;return s=t,0===e||A});return A.body.removeChild(e),t}(document);return Object.defineProperty(Xr,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=function(A){var e=new Image,t=A.createElement("canvas"),A=t.getContext("2d");if(!A)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{A.drawImage(e,0,0),t.toDataURL()}catch(A){return!1}return!0}(document);return Object.defineProperty(Xr,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A="function"==typeof Array.from&&"function"==typeof window.fetch?function(t){var A=t.createElement("canvas"),r=100;A.width=r,A.height=r;var B=A.getContext("2d");if(!B)return Promise.reject(!1);B.fillStyle="rgb(0, 255, 0)",B.fillRect(0,0,r,r);var e=new Image,n=A.toDataURL();e.src=n;e=Nr(r,r,0,0,e);return B.fillStyle="red",B.fillRect(0,0,r,r),Pr(e).then(function(A){B.drawImage(A,0,0);var e=B.getImageData(0,0,r,r).data;B.fillStyle="red",B.fillRect(0,0,r,r);A=t.createElement("div");return A.style.backgroundImage="url("+n+")",A.style.height="100px",Lr(e)?Pr(Nr(r,r,0,0,A)):Promise.reject(!1)}).then(function(A){return B.drawImage(A,0,0),Lr(B.getImageData(0,0,r,r).data)}).catch(function(){return!1})}(document):Promise.resolve(!1);return Object.defineProperty(Xr,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=void 0!==(new Image).crossOrigin;return Object.defineProperty(Xr,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(Xr,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Xr,"SUPPORT_CORS_XHR",{value:A}),A},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var A=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(Xr,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:A}),A}},Jr=function(A,e){this.text=A,this.bounds=e},Yr=function(A,e){var t=e.ownerDocument;if(t){var r=t.createElement("html2canvaswrapper");r.appendChild(e.cloneNode(!0));t=e.parentNode;if(t){t.replaceChild(r,e);A=f(A,r);return r.firstChild&&t.replaceChild(r.firstChild,r),A}}return d.EMPTY},Wr=function(A,e,t){var r=A.ownerDocument;if(!r)throw new Error("Node has no owner document");r=r.createRange();return r.setStart(A,e),r.setEnd(A,e+t),r},Zr=function(A){if(Xr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(A)).map(function(A){return A.segment})}return function(A){for(var e,t=mr(A),r=[];!(e=t.next()).done;)e.value&&r.push(e.value.slice());return r}(A)},_r=function(A,e){return 0!==e.letterSpacing?Zr(A):function(A,e){if(Xr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(A)).map(function(A){return A.segment})}return jr(A,e)}(A,e)},qr=[32,160,4961,65792,65793,4153,4241],jr=function(A,e){for(var t,r=wA(A,{lineBreak:e.lineBreak,wordBreak:"break-word"===e.overflowWrap?"break-word":e.wordBreak}),B=[];!(t=r.next()).done;)!function(){var A,e;t.value&&(A=t.value.slice(),A=Q(A),e="",A.forEach(function(A){-1===qr.indexOf(A)?e+=g(A):(e.length&&B.push(e),B.push(g(A)),e="")}),e.length&&B.push(e))}();return B},zr=function(A,e,t){var B,n,s,o,i;this.text=$r(e.data,t.textTransform),this.textBounds=(B=A,A=this.text,s=e,A=_r(A,n=t),o=[],i=0,A.forEach(function(A){var e,t,r;n.textDecorationLine.length||0<A.trim().length?Xr.SUPPORT_RANGE_BOUNDS?1<(r=Wr(s,i,A.length).getClientRects()).length?(e=Zr(A),t=0,e.forEach(function(A){o.push(new Jr(A,d.fromDOMRectList(B,Wr(s,t+i,A.length).getClientRects()))),t+=A.length})):o.push(new Jr(A,d.fromDOMRectList(B,r))):(r=s.splitText(A.length),o.push(new Jr(A,Yr(B,s))),s=r):Xr.SUPPORT_RANGE_BOUNDS||(s=s.splitText(A.length)),i+=A.length}),o)},$r=function(A,e){switch(e){case 1:return A.toLowerCase();case 3:return A.replace(AB,eB);case 2:return A.toUpperCase();default:return A}},AB=/(^|\s|:|-|\(|\))([a-z])/g,eB=function(A,e,t){return 0<A.length?e+t.toUpperCase():A},tB=(A(rB,Sr=ur),rB);function rB(A,e){A=Sr.call(this,A,e)||this;return A.src=e.currentSrc||e.src,A.intrinsicWidth=e.naturalWidth,A.intrinsicHeight=e.naturalHeight,A.context.cache.addImage(A.src),A}var BB,nB=(A(sB,BB=ur),sB);function sB(A,e){A=BB.call(this,A,e)||this;return A.canvas=e,A.intrinsicWidth=e.width,A.intrinsicHeight=e.height,A}var oB,iB=(A(QB,oB=ur),QB);function QB(A,e){var t=oB.call(this,A,e)||this,r=new XMLSerializer,A=f(A,e);return e.setAttribute("width",A.width+"px"),e.setAttribute("height",A.height+"px"),t.svg="data:image/svg+xml,"+encodeURIComponent(r.serializeToString(e)),t.intrinsicWidth=e.width.baseVal.value,t.intrinsicHeight=e.height.baseVal.value,t.context.cache.addImage(t.svg),t}var cB,aB=(A(gB,cB=ur),gB);function gB(A,e){A=cB.call(this,A,e)||this;return A.value=e.value,A}var wB,UB=(A(lB,wB=ur),lB);function lB(A,e){A=wB.call(this,A,e)||this;return A.start=e.start,A.reversed="boolean"==typeof e.reversed&&!0===e.reversed,A}var CB,uB=[{type:15,flags:0,unit:"px",number:3}],FB=[{type:16,flags:0,number:50}],hB="checkbox",dB="radio",fB="password",HB=707406591,pB=(A(EB,CB=ur),EB);function EB(A,e){var t=CB.call(this,A,e)||this;switch(t.type=e.type.toLowerCase(),t.checked=e.checked,t.value=0===(e=(A=e).type===fB?new Array(A.value.length+1).join("•"):A.value).length?A.placeholder||"":e,t.type!==hB&&t.type!==dB||(t.styles.backgroundColor=3739148031,t.styles.borderTopColor=t.styles.borderRightColor=t.styles.borderBottomColor=t.styles.borderLeftColor=2779096575,t.styles.borderTopWidth=t.styles.borderRightWidth=t.styles.borderBottomWidth=t.styles.borderLeftWidth=1,t.styles.borderTopStyle=t.styles.borderRightStyle=t.styles.borderBottomStyle=t.styles.borderLeftStyle=1,t.styles.backgroundClip=[0],t.styles.backgroundOrigin=[0],t.bounds=(e=t.bounds).width>e.height?new d(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new d(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e),t.type){case hB:t.styles.borderTopRightRadius=t.styles.borderTopLeftRadius=t.styles.borderBottomRightRadius=t.styles.borderBottomLeftRadius=uB;break;case dB:t.styles.borderTopRightRadius=t.styles.borderTopLeftRadius=t.styles.borderBottomRightRadius=t.styles.borderBottomLeftRadius=FB}return t}var IB,yB=(A(KB,IB=ur),KB);function KB(A,e){A=IB.call(this,A,e)||this,e=e.options[e.selectedIndex||0];return A.value=e&&e.text||"",A}var mB,LB=(A(bB,mB=ur),bB);function bB(A,e){A=mB.call(this,A,e)||this;return A.value=e.value,A}var DB,vB=(A(xB,DB=ur),xB);function xB(A,e){var t,r,B=DB.call(this,A,e)||this;B.src=e.src,B.width=parseInt(e.width,10)||0,B.height=parseInt(e.height,10)||0,B.backgroundColor=B.styles.backgroundColor;try{e.contentWindow&&e.contentWindow.document&&e.contentWindow.document.documentElement&&(B.tree=kB(A,e.contentWindow.document.documentElement),t=e.contentWindow.document.documentElement?fe(A,getComputedStyle(e.contentWindow.document.documentElement).backgroundColor):Le.TRANSPARENT,r=e.contentWindow.document.body?fe(A,getComputedStyle(e.contentWindow.document.body).backgroundColor):Le.TRANSPARENT,B.backgroundColor=oe(t)?oe(r)?B.styles.backgroundColor:r:t)}catch(A){}return B}function MB(A){return"VIDEO"===A.tagName}function SB(A){return"STYLE"===A.tagName}function TB(A){return 0<A.tagName.indexOf("-")}var GB=["OL","UL","MENU"],OB=function(e,A,t,r){for(var B=A.firstChild;B;B=s){var n,s=B.nextSibling;PB(B)&&0<B.data.trim().length?t.textNodes.push(new zr(e,B,t.styles)):XB(B)&&(rn(B)&&B.assignedNodes?B.assignedNodes().forEach(function(A){return OB(e,A,t,r)}):(n=VB(e,B)).styles.isVisible()&&(RB(B,n,r)?n.flags|=4:NB(n.styles)&&(n.flags|=2),-1!==GB.indexOf(B.tagName)&&(n.flags|=8),t.elements.push(n),B.slot,B.shadowRoot?OB(e,B.shadowRoot,n,r):en(B)||qB(B)||tn(B)||OB(e,B,n,r)))}},VB=function(A,e){return new($B(e)?tB:zB(e)?nB:qB(e)?iB:WB(e)?aB:ZB(e)?UB:_B(e)?pB:tn(e)?yB:en(e)?LB:An(e)?vB:ur)(A,e)},kB=function(A,e){var t=VB(A,e);return t.flags|=4,OB(A,e,t,t),t},RB=function(A,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||jB(A)&&t.styles.isTransparent()},NB=function(A){return A.isPositioned()||A.isFloating()},PB=function(A){return A.nodeType===Node.TEXT_NODE},XB=function(A){return A.nodeType===Node.ELEMENT_NODE},JB=function(A){return XB(A)&&void 0!==A.style&&!YB(A)},YB=function(A){return"object"==typeof A.className},WB=function(A){return"LI"===A.tagName},ZB=function(A){return"OL"===A.tagName},_B=function(A){return"INPUT"===A.tagName},qB=function(A){return"svg"===A.tagName},jB=function(A){return"BODY"===A.tagName},zB=function(A){return"CANVAS"===A.tagName},$B=function(A){return"IMG"===A.tagName},An=function(A){return"IFRAME"===A.tagName},en=function(A){return"TEXTAREA"===A.tagName},tn=function(A){return"SELECT"===A.tagName},rn=function(A){return"SLOT"===A.tagName},Bn=(nn.prototype.getCounterValue=function(A){A=this.counters[A];return A&&A.length?A[A.length-1]:1},nn.prototype.getCounterValues=function(A){A=this.counters[A];return A||[]},nn.prototype.pop=function(A){var e=this;A.forEach(function(A){return e.counters[A].pop()})},nn.prototype.parse=function(A){var t=this,e=A.counterIncrement,A=A.counterReset,r=!0;null!==e&&e.forEach(function(A){var e=t.counters[A.counter];e&&0!==A.increment&&(r=!1,e.length||e.push(1),e[Math.max(0,e.length-1)]+=A.increment)});var B=[];return r&&A.forEach(function(A){var e=t.counters[A.counter];B.push(A.counter),(e=e||(t.counters[A.counter]=[])).push(A.reset)}),B},nn);function nn(){this.counters={}}function sn(r,A,e,B,t,n){return r<A||e<r?Fn(r,t,0<n.length):B.integers.reduce(function(A,e,t){for(;e<=r;)r-=e,A+=B.values[t];return A},"")+n}function on(A,e,t,r){for(var B="";t||A--,B=r(A)+B,e<=(A/=e)*e;);return B}function Qn(A,e,t,r,B){var n=t-e+1;return(A<0?"-":"")+(on(Math.abs(A),n,r,function(A){return g(Math.floor(A%n)+e)})+B)}function cn(A,e,t){void 0===t&&(t=". ");var r=e.length;return on(Math.abs(A),r,!1,function(A){return e[Math.floor(A%r)]})+t}function an(A,e,t,r,B,n){if(A<-9999||9999<A)return Fn(A,4,0<B.length);var s=Math.abs(A),o=B;if(0===s)return e[0]+o;for(var i=0;0<s&&i<=4;i++){var Q=s%10;0==Q&&Pt(n,1)&&""!==o?o=e[Q]+o:1<Q||1==Q&&0===i||1==Q&&1===i&&Pt(n,2)||1==Q&&1===i&&Pt(n,4)&&100<A||1==Q&&1<i&&Pt(n,8)?o=e[Q]+(0<i?t[i-1]:"")+o:1==Q&&0<i&&(o=t[i-1]+o),s=Math.floor(s/10)}return(A<0?r:"")+o}var gn,wn={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Un={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},ln={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Cn={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},un="마이너스",Fn=function(A,e,t){var r=t?". ":"",B=t?"、":"",n=t?", ":"",s=t?" ":"";switch(e){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var o=Qn(A,48,57,!0,r);return o.length<4?"0"+o:o;case 4:return cn(A,"〇一二三四五六七八九",B);case 6:return sn(A,1,3999,wn,3,r).toLowerCase();case 7:return sn(A,1,3999,wn,3,r);case 8:return Qn(A,945,969,!1,r);case 9:return Qn(A,97,122,!1,r);case 10:return Qn(A,65,90,!1,r);case 11:return Qn(A,1632,1641,!0,r);case 12:case 49:return sn(A,1,9999,Un,3,r);case 35:return sn(A,1,9999,Un,3,r).toLowerCase();case 13:return Qn(A,2534,2543,!0,r);case 14:case 30:return Qn(A,6112,6121,!0,r);case 15:return cn(A,"子丑寅卯辰巳午未申酉戌亥",B);case 16:return cn(A,"甲乙丙丁戊己庚辛壬癸",B);case 17:case 48:return an(A,"零一二三四五六七八九","十百千萬","負",B,14);case 47:return an(A,"零壹貳參肆伍陸柒捌玖","拾佰仟萬","負",B,15);case 42:return an(A,"零一二三四五六七八九","十百千萬","负",B,14);case 41:return an(A,"零壹贰叁肆伍陆柒捌玖","拾佰仟萬","负",B,15);case 26:return an(A,"〇一二三四五六七八九","十百千万","マイナス",B,0);case 25:return an(A,"零壱弐参四伍六七八九","拾百千万","マイナス",B,7);case 31:return an(A,"영일이삼사오육칠팔구","십백천만",un,n,7);case 33:return an(A,"零一二三四五六七八九","十百千萬",un,n,0);case 32:return an(A,"零壹貳參四五六七八九","拾百千",un,n,7);case 18:return Qn(A,2406,2415,!0,r);case 20:return sn(A,1,19999,Cn,3,r);case 21:return Qn(A,2790,2799,!0,r);case 22:return Qn(A,2662,2671,!0,r);case 22:return sn(A,1,10999,ln,3,r);case 23:return cn(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return cn(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Qn(A,3302,3311,!0,r);case 28:return cn(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",B);case 29:return cn(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",B);case 34:return Qn(A,3792,3801,!0,r);case 37:return Qn(A,6160,6169,!0,r);case 38:return Qn(A,4160,4169,!0,r);case 39:return Qn(A,2918,2927,!0,r);case 40:return Qn(A,1776,1785,!0,r);case 43:return Qn(A,3046,3055,!0,r);case 44:return Qn(A,3174,3183,!0,r);case 45:return Qn(A,3664,3673,!0,r);case 46:return Qn(A,3872,3881,!0,r);default:return Qn(A,48,57,!0,r)}},hn="data-html2canvas-ignore",dn=(fn.prototype.toIFrame=function(A,r){var e=this,B=pn(A,r);if(!B.contentWindow)return Promise.reject("Unable to find iframe window");var t=A.defaultView.pageXOffset,n=A.defaultView.pageYOffset,s=B.contentWindow,o=s.document,A=In(B).then(function(){return a(e,void 0,void 0,function(){var e,t;return H(this,function(A){switch(A.label){case 0:return this.scrolledElements.forEach(bn),s&&(s.scrollTo(r.left,r.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||s.scrollY===r.top&&s.scrollX===r.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(s.scrollX-r.left,s.scrollY-r.top,0,0))),e=this.options.onclone,void 0===(t=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:o.fonts&&o.fonts.ready?[4,o.fonts.ready]:[3,2];case 1:A.sent(),A.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,En(o)]:[3,4];case 3:A.sent(),A.label=4;case 4:return"function"==typeof e?[2,Promise.resolve().then(function(){return e(o,t)}).then(function(){return B})]:[2,B]}})})});return o.open(),o.write(mn(document.doctype)+"<html></html>"),Ln(this.referenceElement.ownerDocument,t,n),o.replaceChild(o.adoptNode(this.documentElement),o.documentElement),o.close(),A},fn.prototype.createElementClone=function(A){if(Cr(A,2),zB(A))return this.createCanvasClone(A);if(MB(A))return this.createVideoClone(A);if(SB(A))return this.createStyleClone(A);var e=A.cloneNode(!1);return $B(e)&&($B(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),"lazy"===e.loading&&(e.loading="eager")),TB(e)?this.createCustomElementClone(e):e},fn.prototype.createCustomElementClone=function(A){var e=document.createElement("html2canvascustomelement");return Kn(A.style,e),e},fn.prototype.createStyleClone=function(A){try{var e=A.sheet;if(e&&e.cssRules){var t=[].slice.call(e.cssRules,0).reduce(function(A,e){return e&&"string"==typeof e.cssText?A+e.cssText:A},""),r=A.cloneNode(!1);return r.textContent=t,r}}catch(A){if(this.context.logger.error("Unable to access cssRules property",A),"SecurityError"!==A.name)throw A}return A.cloneNode(!1)},fn.prototype.createCanvasClone=function(e){var A;if(this.options.inlineImages&&e.ownerDocument){var t=e.ownerDocument.createElement("img");try{return t.src=e.toDataURL(),t}catch(A){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}t=e.cloneNode(!1);try{t.width=e.width,t.height=e.height;var r,B,n=e.getContext("2d"),s=t.getContext("2d");return s&&(!this.options.allowTaint&&n?s.putImageData(n.getImageData(0,0,e.width,e.height),0,0):(!(r=null!==(A=e.getContext("webgl2"))&&void 0!==A?A:e.getContext("webgl"))||!1===(null==(B=r.getContextAttributes())?void 0:B.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e),s.drawImage(e,0,0))),t}catch(A){this.context.logger.info("Unable to clone canvas as it is tainted",e)}return t},fn.prototype.createVideoClone=function(e){var A=e.ownerDocument.createElement("canvas");A.width=e.offsetWidth,A.height=e.offsetHeight;var t=A.getContext("2d");try{return t&&(t.drawImage(e,0,0,A.width,A.height),this.options.allowTaint||t.getImageData(0,0,A.width,A.height)),A}catch(A){this.context.logger.info("Unable to clone video as it is tainted",e)}A=e.ownerDocument.createElement("canvas");return A.width=e.offsetWidth,A.height=e.offsetHeight,A},fn.prototype.appendChildNode=function(A,e,t){XB(e)&&("SCRIPT"===e.tagName||e.hasAttribute(hn)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(e))||this.options.copyStyles&&XB(e)&&SB(e)||A.appendChild(this.cloneNode(e,t))},fn.prototype.cloneChildNodes=function(A,e,t){for(var r,B=this,n=(A.shadowRoot||A).firstChild;n;n=n.nextSibling)XB(n)&&rn(n)&&"function"==typeof n.assignedNodes?(r=n.assignedNodes()).length&&r.forEach(function(A){return B.appendChildNode(e,A,t)}):this.appendChildNode(e,n,t)},fn.prototype.cloneNode=function(A,e){if(PB(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var t=A.ownerDocument.defaultView;if(t&&XB(A)&&(JB(A)||YB(A))){var r=this.createElementClone(A);r.style.transitionProperty="none";var B=t.getComputedStyle(A),n=t.getComputedStyle(A,":before"),s=t.getComputedStyle(A,":after");this.referenceElement===A&&JB(r)&&(this.clonedReferenceElement=r),jB(r)&&Mn(r);t=this.counters.parse(new Ur(this.context,B)),n=this.resolvePseudoContent(A,r,n,gn.BEFORE);TB(A)&&(e=!0),MB(A)||this.cloneChildNodes(A,r,e),n&&r.insertBefore(n,r.firstChild);s=this.resolvePseudoContent(A,r,s,gn.AFTER);return s&&r.appendChild(s),this.counters.pop(t),(B&&(this.options.copyStyles||YB(A))&&!An(A)||e)&&Kn(B,r),0===A.scrollTop&&0===A.scrollLeft||this.scrolledElements.push([r,A.scrollLeft,A.scrollTop]),(en(A)||tn(A))&&(en(r)||tn(r))&&(r.value=A.value),r}return A.cloneNode(!1)},fn.prototype.resolvePseudoContent=function(o,A,e,t){var i=this;if(e){var r=e.content,Q=A.ownerDocument;if(Q&&r&&"none"!==r&&"-moz-alt-content"!==r&&"none"!==e.display){this.counters.parse(new Ur(this.context,e));var c=new wr(this.context,e),a=Q.createElement("html2canvaspseudoelement");Kn(e,a),c.content.forEach(function(A){if(0===A.type)a.appendChild(Q.createTextNode(A.value));else if(22===A.type){var e=Q.createElement("img");e.src=A.value,e.style.opacity="1",a.appendChild(e)}else if(18===A.type){var t,r,B,n,s;"attr"===A.name?(e=A.values.filter(_A)).length&&a.appendChild(Q.createTextNode(o.getAttribute(e[0].value)||"")):"counter"===A.name?(B=(r=A.values.filter($A))[0],r=r[1],B&&_A(B)&&(t=i.counters.getCounterValue(B.value),s=r&&_A(r)?pt.parse(i.context,r.value):3,a.appendChild(Q.createTextNode(Fn(t,s,!1))))):"counters"===A.name&&(B=(t=A.values.filter($A))[0],s=t[1],r=t[2],B&&_A(B)&&(B=i.counters.getCounterValues(B.value),n=r&&_A(r)?pt.parse(i.context,r.value):3,s=s&&0===s.type?s.value:"",s=B.map(function(A){return Fn(A,n,!1)}).join(s),a.appendChild(Q.createTextNode(s))))}else if(20===A.type)switch(A.value){case"open-quote":a.appendChild(Q.createTextNode(Xt(c.quotes,i.quoteDepth++,!0)));break;case"close-quote":a.appendChild(Q.createTextNode(Xt(c.quotes,--i.quoteDepth,!1)));break;default:a.appendChild(Q.createTextNode(A.value))}}),a.className=Dn+" "+vn;t=t===gn.BEFORE?" "+Dn:" "+vn;return YB(A)?A.className.baseValue+=t:A.className+=t,a}}},fn.destroy=function(A){return!!A.parentNode&&(A.parentNode.removeChild(A),!0)},fn);function fn(A,e,t){if(this.context=A,this.options=t,this.scrolledElements=[],this.referenceElement=e,this.counters=new Bn,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}(he=gn=gn||{})[he.BEFORE=0]="BEFORE",he[he.AFTER=1]="AFTER";function Hn(e){return new Promise(function(A){!e.complete&&e.src?(e.onload=A,e.onerror=A):A()})}var pn=function(A,e){var t=A.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=e.width.toString(),t.height=e.height.toString(),t.scrolling="no",t.setAttribute(hn,"true"),A.body.appendChild(t),t},En=function(A){return Promise.all([].slice.call(A.images,0).map(Hn))},In=function(B){return new Promise(function(e,A){var t=B.contentWindow;if(!t)return A("No window assigned for iframe");var r=t.document;t.onload=B.onload=function(){t.onload=B.onload=null;var A=setInterval(function(){0<r.body.childNodes.length&&"complete"===r.readyState&&(clearInterval(A),e(B))},50)}})},yn=["all","d","content"],Kn=function(A,e){for(var t=A.length-1;0<=t;t--){var r=A.item(t);-1===yn.indexOf(r)&&e.style.setProperty(r,A.getPropertyValue(r))}return e},mn=function(A){var e="";return A&&(e+="<!DOCTYPE ",A.name&&(e+=A.name),A.internalSubset&&(e+=A.internalSubset),A.publicId&&(e+='"'+A.publicId+'"'),A.systemId&&(e+='"'+A.systemId+'"'),e+=">"),e},Ln=function(A,e,t){A&&A.defaultView&&(e!==A.defaultView.pageXOffset||t!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(e,t)},bn=function(A){var e=A[0],t=A[1],A=A[2];e.scrollLeft=t,e.scrollTop=A},Dn="___html2canvas___pseudoelement_before",vn="___html2canvas___pseudoelement_after",xn='{\n    content: "" !important;\n    display: none !important;\n}',Mn=function(A){Sn(A,"."+Dn+":before"+xn+"\n         ."+vn+":after"+xn)},Sn=function(A,e){var t=A.ownerDocument;t&&((t=t.createElement("style")).textContent=e,A.appendChild(t))},Tn=(Gn.getOrigin=function(A){var e=Gn._link;return e?(e.href=A,e.href=e.href,e.protocol+e.hostname+e.port):"about:blank"},Gn.isSameOrigin=function(A){return Gn.getOrigin(A)===Gn._origin},Gn.setContext=function(A){Gn._link=A.document.createElement("a"),Gn._origin=Gn.getOrigin(A.location.href)},Gn._origin="about:blank",Gn);function Gn(){}var On=(Vn.prototype.addImage=function(A){var e=Promise.resolve();return this.has(A)||(Yn(A)||Pn(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),e},Vn.prototype.match=function(A){return this._cache[A]},Vn.prototype.loadImage=function(s){return a(this,void 0,void 0,function(){var e,r,t,B,n=this;return H(this,function(A){switch(A.label){case 0:return(e=Tn.isSameOrigin(s),r=!Xn(s)&&!0===this._options.useCORS&&Xr.SUPPORT_CORS_IMAGES&&!e,t=!Xn(s)&&!e&&!Yn(s)&&"string"==typeof this._options.proxy&&Xr.SUPPORT_CORS_XHR&&!r,e||!1!==this._options.allowTaint||Xn(s)||Yn(s)||t||r)?(B=s,t?[4,this.proxy(B)]:[3,2]):[2];case 1:B=A.sent(),A.label=2;case 2:return this.context.logger.debug("Added image "+s.substring(0,256)),[4,new Promise(function(A,e){var t=new Image;t.onload=function(){return A(t)},t.onerror=e,(Jn(B)||r)&&(t.crossOrigin="anonymous"),t.src=B,!0===t.complete&&setTimeout(function(){return A(t)},500),0<n._options.imageTimeout&&setTimeout(function(){return e("Timed out ("+n._options.imageTimeout+"ms) loading image")},n._options.imageTimeout)})];case 3:return[2,A.sent()]}})})},Vn.prototype.has=function(A){return void 0!==this._cache[A]},Vn.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},Vn.prototype.proxy=function(s){var o=this,i=this._options.proxy;if(!i)throw new Error("No proxy defined");var Q=s.substring(0,256);return new Promise(function(e,t){var r=Xr.SUPPORT_RESPONSE_TYPE?"blob":"text",B=new XMLHttpRequest;B.onload=function(){var A;200===B.status?"text"==r?e(B.response):((A=new FileReader).addEventListener("load",function(){return e(A.result)},!1),A.addEventListener("error",function(A){return t(A)},!1),A.readAsDataURL(B.response)):t("Failed to proxy resource "+Q+" with status code "+B.status)},B.onerror=t;var A,n=-1<i.indexOf("?")?"&":"?";B.open("GET",i+n+"url="+encodeURIComponent(s)+"&responseType="+r),"text"!=r&&B instanceof XMLHttpRequest&&(B.responseType=r),o._options.imageTimeout&&(A=o._options.imageTimeout,B.timeout=A,B.ontimeout=function(){return t("Timed out ("+A+"ms) proxying "+Q)}),B.send()})},Vn);function Vn(A,e){this.context=A,this._options=e,this._cache={}}var kn=/^data:image\/svg\+xml/i,Rn=/^data:image\/.*;base64,/i,Nn=/^data:image\/.*/i,Pn=function(A){return Xr.SUPPORT_SVG_DRAWING||!Wn(A)},Xn=function(A){return Nn.test(A)},Jn=function(A){return Rn.test(A)},Yn=function(A){return"blob"===A.substr(0,4)},Wn=function(A){return"svg"===A.substr(-3).toLowerCase()||kn.test(A)},Zn=(_n.prototype.add=function(A,e){return new _n(this.x+A,this.y+e)},_n);function _n(A,e){this.type=0,this.x=A,this.y=e}function qn(A,e,t){return new Zn(A.x+(e.x-A.x)*t,A.y+(e.y-A.y)*t)}var jn=(zn.prototype.subdivide=function(A,e){var t=qn(this.start,this.startControl,A),r=qn(this.startControl,this.endControl,A),B=qn(this.endControl,this.end,A),n=qn(t,r,A),r=qn(r,B,A),A=qn(n,r,A);return e?new zn(this.start,t,n,A):new zn(A,r,B,this.end)},zn.prototype.add=function(A,e){return new zn(this.start.add(A,e),this.startControl.add(A,e),this.endControl.add(A,e),this.end.add(A,e))},zn.prototype.reverse=function(){return new zn(this.end,this.endControl,this.startControl,this.start)},zn);function zn(A,e,t,r){this.type=1,this.start=A,this.startControl=e,this.endControl=t,this.end=r}function $n(A){return 1===A.type}var As,es=function(A){var e=A.styles,t=A.bounds,r=(C=Be(e.borderTopLeftRadius,t.width,t.height))[0],B=C[1],n=(u=Be(e.borderTopRightRadius,t.width,t.height))[0],s=u[1],o=(F=Be(e.borderBottomRightRadius,t.width,t.height))[0],i=F[1],Q=(h=Be(e.borderBottomLeftRadius,t.width,t.height))[0],c=h[1];(d=[]).push((r+n)/t.width),d.push((Q+o)/t.width),d.push((B+c)/t.height),d.push((s+i)/t.height),1<(f=Math.max.apply(Math,d))&&(r/=f,B/=f,n/=f,s/=f,o/=f,i/=f,Q/=f,c/=f);var a=t.width-n,g=t.height-i,w=t.width-o,U=t.height-c,l=e.borderTopWidth,C=e.borderRightWidth,u=e.borderBottomWidth,F=e.borderLeftWidth,h=Ue(e.paddingTop,A.bounds.width),d=Ue(e.paddingRight,A.bounds.width),f=Ue(e.paddingBottom,A.bounds.width),A=Ue(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=0<r||0<B?ss(t.left+F/3,t.top+l/3,r-F/3,B-l/3,As.TOP_LEFT):new Zn(t.left+F/3,t.top+l/3),this.topRightBorderDoubleOuterBox=0<r||0<B?ss(t.left+a,t.top+l/3,n-C/3,s-l/3,As.TOP_RIGHT):new Zn(t.left+t.width-C/3,t.top+l/3),this.bottomRightBorderDoubleOuterBox=0<o||0<i?ss(t.left+w,t.top+g,o-C/3,i-u/3,As.BOTTOM_RIGHT):new Zn(t.left+t.width-C/3,t.top+t.height-u/3),this.bottomLeftBorderDoubleOuterBox=0<Q||0<c?ss(t.left+F/3,t.top+U,Q-F/3,c-u/3,As.BOTTOM_LEFT):new Zn(t.left+F/3,t.top+t.height-u/3),this.topLeftBorderDoubleInnerBox=0<r||0<B?ss(t.left+2*F/3,t.top+2*l/3,r-2*F/3,B-2*l/3,As.TOP_LEFT):new Zn(t.left+2*F/3,t.top+2*l/3),this.topRightBorderDoubleInnerBox=0<r||0<B?ss(t.left+a,t.top+2*l/3,n-2*C/3,s-2*l/3,As.TOP_RIGHT):new Zn(t.left+t.width-2*C/3,t.top+2*l/3),this.bottomRightBorderDoubleInnerBox=0<o||0<i?ss(t.left+w,t.top+g,o-2*C/3,i-2*u/3,As.BOTTOM_RIGHT):new Zn(t.left+t.width-2*C/3,t.top+t.height-2*u/3),this.bottomLeftBorderDoubleInnerBox=0<Q||0<c?ss(t.left+2*F/3,t.top+U,Q-2*F/3,c-2*u/3,As.BOTTOM_LEFT):new Zn(t.left+2*F/3,t.top+t.height-2*u/3),this.topLeftBorderStroke=0<r||0<B?ss(t.left+F/2,t.top+l/2,r-F/2,B-l/2,As.TOP_LEFT):new Zn(t.left+F/2,t.top+l/2),this.topRightBorderStroke=0<r||0<B?ss(t.left+a,t.top+l/2,n-C/2,s-l/2,As.TOP_RIGHT):new Zn(t.left+t.width-C/2,t.top+l/2),this.bottomRightBorderStroke=0<o||0<i?ss(t.left+w,t.top+g,o-C/2,i-u/2,As.BOTTOM_RIGHT):new Zn(t.left+t.width-C/2,t.top+t.height-u/2),this.bottomLeftBorderStroke=0<Q||0<c?ss(t.left+F/2,t.top+U,Q-F/2,c-u/2,As.BOTTOM_LEFT):new Zn(t.left+F/2,t.top+t.height-u/2),this.topLeftBorderBox=0<r||0<B?ss(t.left,t.top,r,B,As.TOP_LEFT):new Zn(t.left,t.top),this.topRightBorderBox=0<n||0<s?ss(t.left+a,t.top,n,s,As.TOP_RIGHT):new Zn(t.left+t.width,t.top),this.bottomRightBorderBox=0<o||0<i?ss(t.left+w,t.top+g,o,i,As.BOTTOM_RIGHT):new Zn(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=0<Q||0<c?ss(t.left,t.top+U,Q,c,As.BOTTOM_LEFT):new Zn(t.left,t.top+t.height),this.topLeftPaddingBox=0<r||0<B?ss(t.left+F,t.top+l,Math.max(0,r-F),Math.max(0,B-l),As.TOP_LEFT):new Zn(t.left+F,t.top+l),this.topRightPaddingBox=0<n||0<s?ss(t.left+Math.min(a,t.width-C),t.top+l,a>t.width+C?0:Math.max(0,n-C),Math.max(0,s-l),As.TOP_RIGHT):new Zn(t.left+t.width-C,t.top+l),this.bottomRightPaddingBox=0<o||0<i?ss(t.left+Math.min(w,t.width-F),t.top+Math.min(g,t.height-u),Math.max(0,o-C),Math.max(0,i-u),As.BOTTOM_RIGHT):new Zn(t.left+t.width-C,t.top+t.height-u),this.bottomLeftPaddingBox=0<Q||0<c?ss(t.left+F,t.top+Math.min(U,t.height-u),Math.max(0,Q-F),Math.max(0,c-u),As.BOTTOM_LEFT):new Zn(t.left+F,t.top+t.height-u),this.topLeftContentBox=0<r||0<B?ss(t.left+F+A,t.top+l+h,Math.max(0,r-(F+A)),Math.max(0,B-(l+h)),As.TOP_LEFT):new Zn(t.left+F+A,t.top+l+h),this.topRightContentBox=0<n||0<s?ss(t.left+Math.min(a,t.width+F+A),t.top+l+h,a>t.width+F+A?0:n-F+A,s-(l+h),As.TOP_RIGHT):new Zn(t.left+t.width-(C+d),t.top+l+h),this.bottomRightContentBox=0<o||0<i?ss(t.left+Math.min(w,t.width-(F+A)),t.top+Math.min(g,t.height+l+h),Math.max(0,o-(C+d)),i-(u+f),As.BOTTOM_RIGHT):new Zn(t.left+t.width-(C+d),t.top+t.height-(u+f)),this.bottomLeftContentBox=0<Q||0<c?ss(t.left+F+A,t.top+U,Math.max(0,Q-(F+A)),c-(u+f),As.BOTTOM_LEFT):new Zn(t.left+F+A,t.top+t.height-(u+f))};(he=As=As||{})[he.TOP_LEFT=0]="TOP_LEFT",he[he.TOP_RIGHT=1]="TOP_RIGHT",he[he.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",he[he.BOTTOM_LEFT=3]="BOTTOM_LEFT";function ts(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]}function rs(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]}function Bs(A){return 1===A.type}function ns(A,t){return A.length===t.length&&A.some(function(A,e){return A===t[e]})}var ss=function(A,e,t,r,B){var n=(Math.sqrt(2)-1)/3*4,s=t*n,o=r*n,i=A+t,Q=e+r;switch(B){case As.TOP_LEFT:return new jn(new Zn(A,Q),new Zn(A,Q-o),new Zn(i-s,e),new Zn(i,e));case As.TOP_RIGHT:return new jn(new Zn(A,e),new Zn(A+s,e),new Zn(i,Q-o),new Zn(i,Q));case As.BOTTOM_RIGHT:return new jn(new Zn(i,e),new Zn(i,e+o),new Zn(A+s,Q),new Zn(A,Q));default:As.BOTTOM_LEFT;return new jn(new Zn(i,Q),new Zn(i-s,Q),new Zn(A,e+o),new Zn(A,e))}},os=function(A,e,t){this.offsetX=A,this.offsetY=e,this.matrix=t,this.type=0,this.target=6},is=function(A,e){this.path=A,this.target=e,this.type=1},Qs=function(A){this.opacity=A,this.type=2,this.target=6},cs=function(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},as=(gs.prototype.getEffects=function(e){for(var A=-1===[2,3].indexOf(this.container.styles.position),t=this.parent,r=this.effects.slice(0);t;){var B,n,s=t.effects.filter(function(A){return!Bs(A)});A||0!==t.container.styles.position||!t.parent?(r.unshift.apply(r,s),A=-1===[2,3].indexOf(t.container.styles.position),0!==t.container.styles.overflowX&&(B=ts(t.curves),n=rs(t.curves),ns(B,n)||r.unshift(new is(n,6)))):r.unshift.apply(r,s),t=t.parent}return r.filter(function(A){return Pt(A.target,e)})},gs);function gs(A,e){var t,r;this.container=A,this.parent=e,this.effects=[],this.curves=new es(this.container),this.container.styles.opacity<1&&this.effects.push(new Qs(this.container.styles.opacity)),null!==this.container.styles.transform&&(e=this.container.bounds.left+this.container.styles.transformOrigin[0].number,t=this.container.bounds.top+this.container.styles.transformOrigin[1].number,r=this.container.styles.transform,this.effects.push(new os(e,t,r))),0!==this.container.styles.overflowX&&(t=ts(this.curves),r=rs(this.curves),ns(t,r)?this.effects.push(new is(t,6)):(this.effects.push(new is(t,2)),this.effects.push(new is(r,4))))}function ws(A,e){switch(e){case 0:return Hs(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return Hs(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return Hs(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);default:return Hs(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}}function Us(A){var e=A.bounds,A=A.styles;return e.add(A.borderLeftWidth,A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth),-(A.borderTopWidth+A.borderBottomWidth))}function ls(A){var e=A.styles,t=A.bounds,r=Ue(e.paddingLeft,t.width),B=Ue(e.paddingRight,t.width),n=Ue(e.paddingTop,t.width),A=Ue(e.paddingBottom,t.width);return t.add(r+e.borderLeftWidth,n+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+r+B),-(e.borderTopWidth+e.borderBottomWidth+n+A))}function Cs(A,e,t){var r=(B=Es(A.styles.backgroundOrigin,e),n=A,0===B?n.bounds:(2===B?ls:Us)(n)),B=(s=Es(A.styles.backgroundClip,e),o=A,0===s?o.bounds:(2===s?ls:Us)(o)),n=ps(Es(A.styles.backgroundSize,e),t,r),s=n[0],o=n[1],t=Be(Es(A.styles.backgroundPosition,e),r.width-s,r.height-o);return[Is(Es(A.styles.backgroundRepeat,e),t,n,r,B),Math.round(r.left+t[0]),Math.round(r.top+t[1]),s,o]}function us(A){return _A(A)&&A.value===Ve.AUTO}function Fs(A){return"number"==typeof A}var hs=function(Q,c,a,g){Q.container.elements.forEach(function(A){var e=Pt(A.flags,4),t=Pt(A.flags,2),r=new as(A,Q);Pt(A.styles.display,2048)&&g.push(r);var B,n,s,o,i=Pt(A.flags,8)?[]:g;e||t?(B=e||A.styles.isPositioned()?a:c,t=new cs(r),A.styles.isPositioned()||A.styles.opacity<1||A.styles.isTransformed()?(n=A.styles.zIndex.order)<0?(s=0,B.negativeZIndex.some(function(A,e){return n>A.element.container.styles.zIndex.order?(s=e,!1):0<s}),B.negativeZIndex.splice(s,0,t)):0<n?(o=0,B.positiveZIndex.some(function(A,e){return n>=A.element.container.styles.zIndex.order?(o=e+1,!1):0<o}),B.positiveZIndex.splice(o,0,t)):B.zeroOrAutoZIndexOrTransformedOrOpacity.push(t):(A.styles.isFloating()?B.nonPositionedFloats:B.nonPositionedInlineLevel).push(t),hs(r,t,e?t:a,i)):((A.styles.isInlineLevel()?c.inlineLevel:c.nonInlineLevel).push(r),hs(r,c,a,i)),Pt(A.flags,8)&&ds(A,i)})},ds=function(A,e){for(var t=A instanceof UB?A.start:1,r=A instanceof UB&&A.reversed,B=0;B<e.length;B++){var n=e[B];n.container instanceof aB&&"number"==typeof n.container.value&&0!==n.container.value&&(t=n.container.value),n.listValue=Fn(t,n.container.styles.listStyleType,!0),t+=r?-1:1}},fs=function(A,e){var t=[];return $n(A)?t.push(A.subdivide(.5,!1)):t.push(A),$n(e)?t.push(e.subdivide(.5,!0)):t.push(e),t},Hs=function(A,e,t,r){var B=[];return $n(A)?B.push(A.subdivide(.5,!1)):B.push(A),$n(t)?B.push(t.subdivide(.5,!0)):B.push(t),$n(r)?B.push(r.subdivide(.5,!0).reverse()):B.push(r),$n(e)?B.push(e.subdivide(.5,!1).reverse()):B.push(e),B},ps=function(A,e,t){var r=e[0],B=e[1],n=e[2],s=A[0],o=A[1];if(!s)return[0,0];if(te(s)&&o&&te(o))return[Ue(s,t.width),Ue(o,t.height)];var i=Fs(n);if(_A(s)&&(s.value===Ve.CONTAIN||s.value===Ve.COVER))return Fs(n)?t.width/t.height<n!=(s.value===Ve.COVER)?[t.width,t.width/n]:[t.height*n,t.height]:[t.width,t.height];var Q=Fs(r),e=Fs(B),A=Q||e;if(us(s)&&(!o||us(o)))return Q&&e?[r,B]:i||A?A&&i?[Q?r:B*n,e?B:r/n]:[Q?r:t.width,e?B:t.height]:[t.width,t.height];if(i){var c=0,a=0;return te(s)?c=Ue(s,t.width):te(o)&&(a=Ue(o,t.height)),us(s)?c=a*n:o&&!us(o)||(a=c/n),[c,a]}c=null,a=null;if(te(s)?c=Ue(s,t.width):o&&te(o)&&(a=Ue(o,t.height)),null!==(c=null!==(a=null!==c&&(!o||us(o))?Q&&e?c/r*B:t.height:a)&&us(s)?Q&&e?a/B*r:t.width:c)&&null!==a)return[c,a];throw new Error("Unable to calculate background-size for element")},Es=function(A,e){e=A[e];return void 0===e?A[0]:e},Is=function(A,e,t,r,B){var n=e[0],s=e[1],o=t[0],i=t[1];switch(A){case 2:return[new Zn(Math.round(r.left),Math.round(r.top+s)),new Zn(Math.round(r.left+r.width),Math.round(r.top+s)),new Zn(Math.round(r.left+r.width),Math.round(i+r.top+s)),new Zn(Math.round(r.left),Math.round(i+r.top+s))];case 3:return[new Zn(Math.round(r.left+n),Math.round(r.top)),new Zn(Math.round(r.left+n+o),Math.round(r.top)),new Zn(Math.round(r.left+n+o),Math.round(r.height+r.top)),new Zn(Math.round(r.left+n),Math.round(r.height+r.top))];case 1:return[new Zn(Math.round(r.left+n),Math.round(r.top+s)),new Zn(Math.round(r.left+n+o),Math.round(r.top+s)),new Zn(Math.round(r.left+n+o),Math.round(r.top+s+i)),new Zn(Math.round(r.left+n),Math.round(r.top+s+i))];default:return[new Zn(Math.round(B.left),Math.round(B.top)),new Zn(Math.round(B.left+B.width),Math.round(B.top)),new Zn(Math.round(B.left+B.width),Math.round(B.height+B.top)),new Zn(Math.round(B.left),Math.round(B.height+B.top))]}},ys="Hidden Text",Ks=(ms.prototype.parseMetrics=function(A,e){var t=this._document.createElement("div"),r=this._document.createElement("img"),B=this._document.createElement("span"),n=this._document.body;t.style.visibility="hidden",t.style.fontFamily=A,t.style.fontSize=e,t.style.margin="0",t.style.padding="0",t.style.whiteSpace="nowrap",n.appendChild(t),r.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",B.style.fontFamily=A,B.style.fontSize=e,B.style.margin="0",B.style.padding="0",B.appendChild(this._document.createTextNode(ys)),t.appendChild(B),t.appendChild(r);e=r.offsetTop-B.offsetTop+2;t.removeChild(B),t.appendChild(this._document.createTextNode(ys)),t.style.lineHeight="normal",r.style.verticalAlign="super";r=r.offsetTop-t.offsetTop+2;return n.removeChild(t),{baseline:e,middle:r}},ms.prototype.getMetrics=function(A,e){var t=A+" "+e;return void 0===this._data[t]&&(this._data[t]=this.parseMetrics(A,e)),this._data[t]},ms);function ms(A){this._data={},this._document=A}var Ls,he=function(A,e){this.context=A,this.options=e},bs=(A(Ds,Ls=he),Ds.prototype.applyEffects=function(A){for(var e=this;this._activeEffects.length;)this.popEffect();A.forEach(function(A){return e.applyEffect(A)})},Ds.prototype.applyEffect=function(A){this.ctx.save(),2===A.type&&(this.ctx.globalAlpha=A.opacity),0===A.type&&(this.ctx.translate(A.offsetX,A.offsetY),this.ctx.transform(A.matrix[0],A.matrix[1],A.matrix[2],A.matrix[3],A.matrix[4],A.matrix[5]),this.ctx.translate(-A.offsetX,-A.offsetY)),Bs(A)&&(this.path(A.path),this.ctx.clip()),this._activeEffects.push(A)},Ds.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},Ds.prototype.renderStack=function(e){return a(this,void 0,void 0,function(){return H(this,function(A){switch(A.label){case 0:return e.element.container.styles.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:A.sent(),A.label=2;case 2:return[2]}})})},Ds.prototype.renderNode=function(e){return a(this,void 0,void 0,function(){return H(this,function(A){switch(A.label){case 0:return Pt(e.container.flags,16),e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return A.sent(),[4,this.renderNodeContent(e)];case 2:A.sent(),A.label=3;case 3:return[2]}})})},Ds.prototype.renderTextWithLetterSpacing=function(t,A,r){var B=this;0===A?this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+r):Zr(t.text).reduce(function(A,e){return B.ctx.fillText(e,A,t.bounds.top+r),A+B.ctx.measureText(e).width},t.bounds.left)},Ds.prototype.createFontStyle=function(A){var e=A.fontVariant.filter(function(A){return"normal"===A||"small-caps"===A}).join(""),t=Gs(A.fontFamily).join(", "),r=WA(A.fontSize)?""+A.fontSize.number+A.fontSize.unit:A.fontSize.number+"px";return[[A.fontStyle,e,A.fontWeight,r,t].join(" "),t,r]},Ds.prototype.renderTextNode=function(i,Q){return a(this,void 0,void 0,function(){var e,t,r,B,n,s,o=this;return H(this,function(A){return r=this.createFontStyle(Q),e=r[0],t=r[1],r=r[2],this.ctx.font=e,this.ctx.direction=1===Q.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",r=this.fontMetrics.getMetrics(t,r),B=r.baseline,n=r.middle,s=Q.paintOrder,i.textBounds.forEach(function(t){s.forEach(function(A){switch(A){case 0:o.ctx.fillStyle=ie(Q.color),o.renderTextWithLetterSpacing(t,Q.letterSpacing,B);var e=Q.textShadow;e.length&&t.text.trim().length&&(e.slice(0).reverse().forEach(function(A){o.ctx.shadowColor=ie(A.color),o.ctx.shadowOffsetX=A.offsetX.number*o.options.scale,o.ctx.shadowOffsetY=A.offsetY.number*o.options.scale,o.ctx.shadowBlur=A.blur.number,o.renderTextWithLetterSpacing(t,Q.letterSpacing,B)}),o.ctx.shadowColor="",o.ctx.shadowOffsetX=0,o.ctx.shadowOffsetY=0,o.ctx.shadowBlur=0),Q.textDecorationLine.length&&(o.ctx.fillStyle=ie(Q.textDecorationColor||Q.color),Q.textDecorationLine.forEach(function(A){switch(A){case 1:o.ctx.fillRect(t.bounds.left,Math.round(t.bounds.top+B),t.bounds.width,1);break;case 2:o.ctx.fillRect(t.bounds.left,Math.round(t.bounds.top),t.bounds.width,1);break;case 3:o.ctx.fillRect(t.bounds.left,Math.ceil(t.bounds.top+n),t.bounds.width,1)}}));break;case 1:Q.webkitTextStrokeWidth&&t.text.trim().length&&(o.ctx.strokeStyle=ie(Q.webkitTextStrokeColor),o.ctx.lineWidth=Q.webkitTextStrokeWidth,o.ctx.lineJoin=window.chrome?"miter":"round",o.ctx.strokeText(t.text,t.bounds.left,t.bounds.top+B)),o.ctx.strokeStyle="",o.ctx.lineWidth=0,o.ctx.lineJoin="miter"}})}),[2]})})},Ds.prototype.renderReplacedElement=function(A,e,t){var r;t&&0<A.intrinsicWidth&&0<A.intrinsicHeight&&(r=ls(A),e=rs(e),this.path(e),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(t,0,0,A.intrinsicWidth,A.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore())},Ds.prototype.renderNodeContent=function(w){return a(this,void 0,void 0,function(){var e,t,r,B,n,s,o,i,Q,c,a,g;return H(this,function(A){switch(A.label){case 0:this.applyEffects(w.getEffects(4)),e=w.container,t=w.curves,r=e.styles,B=0,n=e.textNodes,A.label=1;case 1:return B<n.length?(s=n[B],[4,this.renderTextNode(s,r)]):[3,4];case 2:A.sent(),A.label=3;case 3:return B++,[3,1];case 4:if(!(e instanceof tB))return[3,8];A.label=5;case 5:return A.trys.push([5,7,,8]),[4,this.context.cache.match(e.src)];case 6:return Q=A.sent(),this.renderReplacedElement(e,t,Q),[3,8];case 7:return A.sent(),this.context.logger.error("Error loading image "+e.src),[3,8];case 8:if(e instanceof nB&&this.renderReplacedElement(e,t,e.canvas),!(e instanceof iB))return[3,12];A.label=9;case 9:return A.trys.push([9,11,,12]),[4,this.context.cache.match(e.svg)];case 10:return Q=A.sent(),this.renderReplacedElement(e,t,Q),[3,12];case 11:return A.sent(),this.context.logger.error("Error loading svg "+e.svg.substring(0,255)),[3,12];case 12:return e instanceof vB&&e.tree?[4,new Ds(this.context,{scale:this.options.scale,backgroundColor:e.backgroundColor,x:0,y:0,width:e.width,height:e.height}).render(e.tree)]:[3,14];case 13:s=A.sent(),e.width&&e.height&&this.ctx.drawImage(s,0,0,e.width,e.height,e.bounds.left,e.bounds.top,e.bounds.width,e.bounds.height),A.label=14;case 14:if(e instanceof pB&&(i=Math.min(e.bounds.width,e.bounds.height),e.type===hB?e.checked&&(this.ctx.save(),this.path([new Zn(e.bounds.left+.39363*i,e.bounds.top+.79*i),new Zn(e.bounds.left+.16*i,e.bounds.top+.5549*i),new Zn(e.bounds.left+.27347*i,e.bounds.top+.44071*i),new Zn(e.bounds.left+.39694*i,e.bounds.top+.5649*i),new Zn(e.bounds.left+.72983*i,e.bounds.top+.23*i),new Zn(e.bounds.left+.84*i,e.bounds.top+.34085*i),new Zn(e.bounds.left+.39363*i,e.bounds.top+.79*i)]),this.ctx.fillStyle=ie(HB),this.ctx.fill(),this.ctx.restore()):e.type===dB&&e.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(e.bounds.left+i/2,e.bounds.top+i/2,i/4,0,2*Math.PI,!0),this.ctx.fillStyle=ie(HB),this.ctx.fill(),this.ctx.restore())),xs(e)&&e.value.length){switch(c=this.createFontStyle(r),a=c[0],i=c[1],c=this.fontMetrics.getMetrics(a,i).baseline,this.ctx.font=a,this.ctx.fillStyle=ie(r.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Ss(e.styles.textAlign),g=ls(e),o=0,e.styles.textAlign){case 1:o+=g.width/2;break;case 2:o+=g.width}i=g.add(o,0,0,-g.height/2+1),this.ctx.save(),this.path([new Zn(g.left,g.top),new Zn(g.left+g.width,g.top),new Zn(g.left+g.width,g.top+g.height),new Zn(g.left,g.top+g.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Jr(e.value,i),r.letterSpacing,c),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Pt(e.styles.display,2048))return[3,20];if(null===e.styles.listStyleImage)return[3,19];if(0!==(c=e.styles.listStyleImage).type)return[3,18];Q=void 0,c=c.url,A.label=15;case 15:return A.trys.push([15,17,,18]),[4,this.context.cache.match(c)];case 16:return Q=A.sent(),this.ctx.drawImage(Q,e.bounds.left-(Q.width+10),e.bounds.top),[3,18];case 17:return A.sent(),this.context.logger.error("Error loading list-style-image "+c),[3,18];case 18:return[3,20];case 19:w.listValue&&-1!==e.styles.listStyleType&&(a=this.createFontStyle(r)[0],this.ctx.font=a,this.ctx.fillStyle=ie(r.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",g=new d(e.bounds.left,e.bounds.top+Ue(e.styles.paddingTop,e.bounds.width),e.bounds.width,Ye(r.lineHeight,r.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Jr(w.listValue,g),r.letterSpacing,Ye(r.lineHeight,r.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),A.label=20;case 20:return[2]}})})},Ds.prototype.renderStackContent=function(C){return a(this,void 0,void 0,function(){var e,t,r,B,n,s,o,i,Q,c,a,g,w,U,l;return H(this,function(A){switch(A.label){case 0:return Pt(C.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(C.element)];case 1:A.sent(),e=0,t=C.negativeZIndex,A.label=2;case 2:return e<t.length?(l=t[e],[4,this.renderStack(l)]):[3,5];case 3:A.sent(),A.label=4;case 4:return e++,[3,2];case 5:return[4,this.renderNodeContent(C.element)];case 6:A.sent(),r=0,B=C.nonInlineLevel,A.label=7;case 7:return r<B.length?(l=B[r],[4,this.renderNode(l)]):[3,10];case 8:A.sent(),A.label=9;case 9:return r++,[3,7];case 10:n=0,s=C.nonPositionedFloats,A.label=11;case 11:return n<s.length?(l=s[n],[4,this.renderStack(l)]):[3,14];case 12:A.sent(),A.label=13;case 13:return n++,[3,11];case 14:o=0,i=C.nonPositionedInlineLevel,A.label=15;case 15:return o<i.length?(l=i[o],[4,this.renderStack(l)]):[3,18];case 16:A.sent(),A.label=17;case 17:return o++,[3,15];case 18:Q=0,c=C.inlineLevel,A.label=19;case 19:return Q<c.length?(l=c[Q],[4,this.renderNode(l)]):[3,22];case 20:A.sent(),A.label=21;case 21:return Q++,[3,19];case 22:a=0,g=C.zeroOrAutoZIndexOrTransformedOrOpacity,A.label=23;case 23:return a<g.length?(l=g[a],[4,this.renderStack(l)]):[3,26];case 24:A.sent(),A.label=25;case 25:return a++,[3,23];case 26:w=0,U=C.positiveZIndex,A.label=27;case 27:return w<U.length?(l=U[w],[4,this.renderStack(l)]):[3,30];case 28:A.sent(),A.label=29;case 29:return w++,[3,27];case 30:return[2]}})})},Ds.prototype.mask=function(A){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(A.slice(0).reverse()),this.ctx.closePath()},Ds.prototype.path=function(A){this.ctx.beginPath(),this.formatPath(A),this.ctx.closePath()},Ds.prototype.formatPath=function(A){var r=this;A.forEach(function(A,e){var t=$n(A)?A.start:A;0===e?r.ctx.moveTo(t.x,t.y):r.ctx.lineTo(t.x,t.y),$n(A)&&r.ctx.bezierCurveTo(A.startControl.x,A.startControl.y,A.endControl.x,A.endControl.y,A.end.x,A.end.y)})},Ds.prototype.renderRepeat=function(A,e,t,r){this.path(A),this.ctx.fillStyle=e,this.ctx.translate(t,r),this.ctx.fill(),this.ctx.translate(-t,-r)},Ds.prototype.resizeImage=function(A,e,t){if(A.width===e&&A.height===t)return A;var r=(null!==(r=this.canvas.ownerDocument)&&void 0!==r?r:document).createElement("canvas");return r.width=Math.max(1,e),r.height=Math.max(1,t),r.getContext("2d").drawImage(A,0,0,A.width,A.height,0,0,e,t),r},Ds.prototype.renderBackgroundImage=function(f){return a(this,void 0,void 0,function(){var h,e,d,t,r,B;return H(this,function(A){switch(A.label){case 0:h=f.styles.backgroundImage.length-1,e=function(e){var t,r,B,n,s,o,i,Q,c,a,g,w,U,l,C,u,F;return H(this,function(A){switch(A.label){case 0:if(0!==e.type)return[3,5];t=void 0,r=e.url,A.label=1;case 1:return A.trys.push([1,3,,4]),[4,d.context.cache.match(r)];case 2:return t=A.sent(),[3,4];case 3:return A.sent(),d.context.logger.error("Error loading background-image "+r),[3,4];case 4:return t&&(B=Cs(f,h,[t.width,t.height,t.width/t.height]),o=B[0],g=B[1],w=B[2],c=B[3],a=B[4],s=d.ctx.createPattern(d.resizeImage(t,c,a),"repeat"),d.renderRepeat(o,s,g,w)),[3,6];case 5:1===e.type?(F=Cs(f,h,[null,null,null]),o=F[0],g=F[1],w=F[2],c=F[3],a=F[4],C=Ee(e.angle,c,a),l=C[0],B=C[1],i=C[2],u=C[3],Q=C[4],(F=document.createElement("canvas")).width=c,F.height=a,C=F.getContext("2d"),n=C.createLinearGradient(B,u,i,Q),pe(e.stops,l).forEach(function(A){return n.addColorStop(A.stop,ie(A.color))}),C.fillStyle=n,C.fillRect(0,0,c,a),0<c&&0<a&&(s=d.ctx.createPattern(F,"repeat"),d.renderRepeat(o,s,g,w))):2===e.type&&(u=Cs(f,h,[null,null,null]),o=u[0],i=u[1],Q=u[2],c=u[3],a=u[4],l=0===e.position.length?[ge]:e.position,g=Ue(l[0],c),w=Ue(l[l.length-1],a),C=function(A,e,t,r,B){var n,s,o,i,Q=0,c=0;switch(A.size){case 0:0===A.shape?Q=c=Math.min(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-B)):1===A.shape&&(Q=Math.min(Math.abs(e),Math.abs(e-r)),c=Math.min(Math.abs(t),Math.abs(t-B)));break;case 2:0===A.shape?Q=c=Math.min(Ie(e,t),Ie(e,t-B),Ie(e-r,t),Ie(e-r,t-B)):1===A.shape&&(n=Math.min(Math.abs(t),Math.abs(t-B))/Math.min(Math.abs(e),Math.abs(e-r)),o=(s=ye(r,B,e,t,!0))[0],i=s[1],c=n*(Q=Ie(o-e,(i-t)/n)));break;case 1:0===A.shape?Q=c=Math.max(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-B)):1===A.shape&&(Q=Math.max(Math.abs(e),Math.abs(e-r)),c=Math.max(Math.abs(t),Math.abs(t-B)));break;case 3:0===A.shape?Q=c=Math.max(Ie(e,t),Ie(e,t-B),Ie(e-r,t),Ie(e-r,t-B)):1===A.shape&&(n=Math.max(Math.abs(t),Math.abs(t-B))/Math.max(Math.abs(e),Math.abs(e-r)),o=(s=ye(r,B,e,t,!1))[0],i=s[1],c=n*(Q=Ie(o-e,(i-t)/n)))}return Array.isArray(A.size)&&(Q=Ue(A.size[0],r),c=2===A.size.length?Ue(A.size[1],B):Q),[Q,c]}(e,g,w,c,a),F=C[0],u=C[1],0<F&&0<u&&(U=d.ctx.createRadialGradient(i+g,Q+w,0,i+g,Q+w,F),pe(e.stops,2*F).forEach(function(A){return U.addColorStop(A.stop,ie(A.color))}),d.path(o),d.ctx.fillStyle=U,F!==u?(l=f.bounds.left+.5*f.bounds.width,C=f.bounds.top+.5*f.bounds.height,F=1/(u=u/F),d.ctx.save(),d.ctx.translate(l,C),d.ctx.transform(1,0,0,u,0,0),d.ctx.translate(-l,-C),d.ctx.fillRect(i,F*(Q-C)+C,c,a*F),d.ctx.restore()):d.ctx.fill())),A.label=6;case 6:return h--,[2]}})},d=this,t=0,r=f.styles.backgroundImage.slice(0).reverse(),A.label=1;case 1:return t<r.length?(B=r[t],[5,e(B)]):[3,4];case 2:A.sent(),A.label=3;case 3:return t++,[3,1];case 4:return[2]}})})},Ds.prototype.renderSolidBorder=function(e,t,r){return a(this,void 0,void 0,function(){return H(this,function(A){return this.path(ws(r,t)),this.ctx.fillStyle=ie(e),this.ctx.fill(),[2]})})},Ds.prototype.renderDoubleBorder=function(t,r,B,n){return a(this,void 0,void 0,function(){var e;return H(this,function(A){switch(A.label){case 0:return r<3?[4,this.renderSolidBorder(t,B,n)]:[3,2];case 1:return A.sent(),[2];case 2:return e=function(A,e){switch(e){case 0:return Hs(A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox,A.topRightBorderBox,A.topRightBorderDoubleOuterBox);case 1:return Hs(A.topRightBorderBox,A.topRightBorderDoubleOuterBox,A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox);case 2:return Hs(A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox,A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox);default:return Hs(A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox,A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox)}}(n,B),this.path(e),this.ctx.fillStyle=ie(t),this.ctx.fill(),e=function(A,e){switch(e){case 0:return Hs(A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox,A.topRightBorderDoubleInnerBox,A.topRightPaddingBox);case 1:return Hs(A.topRightBorderDoubleInnerBox,A.topRightPaddingBox,A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox);case 2:return Hs(A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox,A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox);default:return Hs(A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox,A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox)}}(n,B),this.path(e),this.ctx.fill(),[2]}})})},Ds.prototype.renderNodeBackgroundAndBorders=function(c){return a(this,void 0,void 0,function(){var e,t,r,B,n,s,o,i,Q=this;return H(this,function(A){switch(A.label){case 0:return(this.applyEffects(c.getEffects(2)),e=c.container.styles,t=!oe(e.backgroundColor)||e.backgroundImage.length,r=[{style:e.borderTopStyle,color:e.borderTopColor,width:e.borderTopWidth},{style:e.borderRightStyle,color:e.borderRightColor,width:e.borderRightWidth},{style:e.borderBottomStyle,color:e.borderBottomColor,width:e.borderBottomWidth},{style:e.borderLeftStyle,color:e.borderLeftColor,width:e.borderLeftWidth}],B=Ms(Es(e.backgroundClip,0),c.curves),t||e.boxShadow.length)?(this.ctx.save(),this.path(B),this.ctx.clip(),oe(e.backgroundColor)||(this.ctx.fillStyle=ie(e.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(c.container)]):[3,2];case 1:A.sent(),this.ctx.restore(),e.boxShadow.slice(0).reverse().forEach(function(A){Q.ctx.save();var t,r,B,n,e=ts(c.curves),s=A.inset?0:1e4,o=(t=-s+(A.inset?1:-1)*A.spread.number,r=(A.inset?1:-1)*A.spread.number,B=A.spread.number*(A.inset?-2:2),n=A.spread.number*(A.inset?-2:2),e.map(function(A,e){switch(e){case 0:return A.add(t,r);case 1:return A.add(t+B,r);case 2:return A.add(t+B,r+n);case 3:return A.add(t,r+n)}return A}));A.inset?(Q.path(e),Q.ctx.clip(),Q.mask(o)):(Q.mask(e),Q.ctx.clip(),Q.path(o)),Q.ctx.shadowOffsetX=A.offsetX.number+s,Q.ctx.shadowOffsetY=A.offsetY.number,Q.ctx.shadowColor=ie(A.color),Q.ctx.shadowBlur=A.blur.number,Q.ctx.fillStyle=A.inset?ie(A.color):"rgba(0,0,0,1)",Q.ctx.fill(),Q.ctx.restore()}),A.label=2;case 2:s=n=0,o=r,A.label=3;case 3:return s<o.length?0!==(i=o[s]).style&&!oe(i.color)&&0<i.width?2!==i.style?[3,5]:[4,this.renderDashedDottedBorder(i.color,i.width,n,c.curves,2)]:[3,11]:[3,13];case 4:return A.sent(),[3,11];case 5:return 3!==i.style?[3,7]:[4,this.renderDashedDottedBorder(i.color,i.width,n,c.curves,3)];case 6:return A.sent(),[3,11];case 7:return 4!==i.style?[3,9]:[4,this.renderDoubleBorder(i.color,i.width,n,c.curves)];case 8:return A.sent(),[3,11];case 9:return[4,this.renderSolidBorder(i.color,n,c.curves)];case 10:A.sent(),A.label=11;case 11:n++,A.label=12;case 12:return s++,[3,3];case 13:return[2]}})})},Ds.prototype.renderDashedDottedBorder=function(g,w,U,l,C){return a(this,void 0,void 0,function(){var e,t,r,B,n,s,o,i,Q,c,a;return H(this,function(A){return this.ctx.save(),Q=function(A,e){switch(e){case 0:return fs(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return fs(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return fs(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);default:return fs(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}}(l,U),e=ws(l,U),2===C&&(this.path(e),this.ctx.clip()),s=$n(e[0])?(t=e[0].start.x,e[0].start.y):(t=e[0].x,e[0].y),o=$n(e[1])?(r=e[1].end.x,e[1].end.y):(r=e[1].x,e[1].y),B=0===U||2===U?Math.abs(t-r):Math.abs(s-o),this.ctx.beginPath(),3===C?this.formatPath(Q):this.formatPath(e.slice(0,2)),n=w<3?3*w:2*w,s=w<3?2*w:w,3===C&&(s=n=w),o=!0,B<=2*n?o=!1:B<=2*n+s?(n*=i=B/(2*n+s),s*=i):(Q=Math.floor((B+s)/(n+s)),i=(B-Q*n)/(Q-1),s=(Q=(B-(Q+1)*n)/Q)<=0||Math.abs(s-i)<Math.abs(s-Q)?i:Q),o&&(3===C?this.ctx.setLineDash([0,n+s]):this.ctx.setLineDash([n,s])),3===C?(this.ctx.lineCap="round",this.ctx.lineWidth=w):this.ctx.lineWidth=2*w+1.1,this.ctx.strokeStyle=ie(g),this.ctx.stroke(),this.ctx.setLineDash([]),2===C&&($n(e[0])&&(c=e[3],a=e[0],this.ctx.beginPath(),this.formatPath([new Zn(c.end.x,c.end.y),new Zn(a.start.x,a.start.y)]),this.ctx.stroke()),$n(e[1])&&(c=e[1],a=e[2],this.ctx.beginPath(),this.formatPath([new Zn(c.end.x,c.end.y),new Zn(a.start.x,a.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},Ds.prototype.render=function(B){return a(this,void 0,void 0,function(){return H(this,function(A){switch(A.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=ie(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),t=new as(e=B,null),r=new cs(t),hs(t,r,r,e=[]),ds(t.container,e),[4,this.renderStack(r)];case 1:return A.sent(),this.applyEffects([]),[2,this.canvas]}var e,t,r})})},Ds);function Ds(A,e){A=Ls.call(this,A,e)||this;return A._activeEffects=[],A.canvas=e.canvas||document.createElement("canvas"),A.ctx=A.canvas.getContext("2d"),e.canvas||(A.canvas.width=Math.floor(e.width*e.scale),A.canvas.height=Math.floor(e.height*e.scale),A.canvas.style.width=e.width+"px",A.canvas.style.height=e.height+"px"),A.fontMetrics=new Ks(document),A.ctx.scale(A.options.scale,A.options.scale),A.ctx.translate(-e.x,-e.y),A.ctx.textBaseline="bottom",A._activeEffects=[],A.context.logger.debug("Canvas renderer initialized ("+e.width+"x"+e.height+") with scale "+e.scale),A}var vs,xs=function(A){return A instanceof LB||(A instanceof yB||A instanceof pB&&A.type!==dB&&A.type!==hB)},Ms=function(A,e){switch(A){case 0:return ts(e);case 2:return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox];default:return rs(e)}},Ss=function(A){switch(A){case 1:return"center";case 2:return"right";default:return"left"}},Ts=["-apple-system","system-ui"],Gs=function(A){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?A.filter(function(A){return-1===Ts.indexOf(A)}):A},Os=(A(Vs,vs=he),Vs.prototype.render=function(t){return a(this,void 0,void 0,function(){var e;return H(this,function(A){switch(A.label){case 0:return e=Nr(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),[4,ks(e)];case 1:return e=A.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=ie(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(e,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},Vs);function Vs(A,e){A=vs.call(this,A,e)||this;return A.canvas=e.canvas||document.createElement("canvas"),A.ctx=A.canvas.getContext("2d"),A.options=e,A.canvas.width=Math.floor(e.width*e.scale),A.canvas.height=Math.floor(e.height*e.scale),A.canvas.style.width=e.width+"px",A.canvas.style.height=e.height+"px",A.ctx.scale(A.options.scale,A.options.scale),A.ctx.translate(-e.x,-e.y),A.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+e.width+"x"+e.height+" at "+e.x+","+e.y+") with scale "+e.scale),A}var ks=function(r){return new Promise(function(A,e){var t=new Image;t.onload=function(){A(t)},t.onerror=e,t.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(r))})},Rs=(Ns.prototype.debug=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug.apply(console,t([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},Ns.prototype.getTime=function(){return Date.now()-this.start},Ns.prototype.info=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info.apply(console,t([this.id,this.getTime()+"ms"],A))},Ns.prototype.warn=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.warn?console.warn.apply(console,t([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},Ns.prototype.error=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error.apply(console,t([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},Ns.instances={},Ns);function Ns(A){var e=A.id,A=A.enabled;this.id=e,this.enabled=A,this.start=Date.now()}var Ps=(Xs.instanceCount=1,Xs);function Xs(A,e){this.windowBounds=e,this.instanceName="#"+Xs.instanceCount++,this.logger=new Rs({id:this.instanceName,enabled:A.logging}),this.cache=null!==(e=A.cache)&&void 0!==e?e:new On(this,A)}"undefined"!=typeof window&&Tn.setContext(window);var Js=function(u,F){return a(void 0,void 0,void 0,function(){var e,t,r,B,n,s,o,i,Q,c,a,g,w,U,l,C;return H(this,function(A){switch(A.label){case 0:if(!u||"object"!=typeof u)return[2,Promise.reject("Invalid element provided as first argument")];if(!(e=u.ownerDocument))throw new Error("Element is not attached to a Document");if(!(t=e.defaultView))throw new Error("Document is not attached to a Window");return w={allowTaint:null!==(U=F.allowTaint)&&void 0!==U&&U,imageTimeout:null!==(c=F.imageTimeout)&&void 0!==c?c:15e3,proxy:F.proxy,useCORS:null!==(a=F.useCORS)&&void 0!==a&&a},U=h({logging:null===(g=F.logging)||void 0===g||g,cache:F.cache},w),c={windowWidth:null!==(c=F.windowWidth)&&void 0!==c?c:t.innerWidth,windowHeight:null!==(a=F.windowHeight)&&void 0!==a?a:t.innerHeight,scrollX:null!==(g=F.scrollX)&&void 0!==g?g:t.pageXOffset,scrollY:null!==(w=F.scrollY)&&void 0!==w?w:t.pageYOffset},a=new d(c.scrollX,c.scrollY,c.windowWidth,c.windowHeight),g=new Ps(U,a),c=null!==(w=F.foreignObjectRendering)&&void 0!==w&&w,w={allowTaint:null!==(U=F.allowTaint)&&void 0!==U&&U,onclone:F.onclone,ignoreElements:F.ignoreElements,inlineImages:c,copyStyles:c},g.logger.debug("Starting document clone with size "+a.width+"x"+a.height+" scrolled to "+-a.left+","+-a.top),U=new dn(g,u,w),(w=U.clonedReferenceElement)?[4,U.toIFrame(e,a)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return(r=A.sent(),l=jB(w)||"HTML"===w.tagName?function(A){var e=A.body,t=A.documentElement;if(!e||!t)throw new Error("Unable to get document size");A=Math.max(Math.max(e.scrollWidth,t.scrollWidth),Math.max(e.offsetWidth,t.offsetWidth),Math.max(e.clientWidth,t.clientWidth)),t=Math.max(Math.max(e.scrollHeight,t.scrollHeight),Math.max(e.offsetHeight,t.offsetHeight),Math.max(e.clientHeight,t.clientHeight));return new d(0,0,A,t)}(w.ownerDocument):f(g,w),B=l.width,n=l.height,s=l.left,o=l.top,i=Ys(g,w,F.backgroundColor),l={canvas:F.canvas,backgroundColor:i,scale:null!==(l=null!==(l=F.scale)&&void 0!==l?l:t.devicePixelRatio)&&void 0!==l?l:1,x:(null!==(l=F.x)&&void 0!==l?l:0)+s,y:(null!==(l=F.y)&&void 0!==l?l:0)+o,width:null!==(l=F.width)&&void 0!==l?l:Math.ceil(B),height:null!==(l=F.height)&&void 0!==l?l:Math.ceil(n)},c)?(g.logger.debug("Document cloned, using foreign object rendering"),[4,new Os(g,l).render(w)]):[3,3];case 2:return Q=A.sent(),[3,5];case 3:return g.logger.debug("Document cloned, element located at "+s+","+o+" with size "+B+"x"+n+" using computed rendering"),g.logger.debug("Starting DOM parsing"),C=kB(g,w),i===C.styles.backgroundColor&&(C.styles.backgroundColor=Le.TRANSPARENT),g.logger.debug("Starting renderer for element at "+l.x+","+l.y+" with size "+l.width+"x"+l.height),[4,new bs(g,l).render(C)];case 4:Q=A.sent(),A.label=5;case 5:return null!==(C=F.removeContainer)&&void 0!==C&&!C||dn.destroy(r)||g.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore"),g.logger.debug("Finished rendering"),[2,Q]}})})},Ys=function(A,e,t){var r=e.ownerDocument,B=r.documentElement?fe(A,getComputedStyle(r.documentElement).backgroundColor):Le.TRANSPARENT,n=r.body?fe(A,getComputedStyle(r.body).backgroundColor):Le.TRANSPARENT,t="string"==typeof t?fe(A,t):null===t?Le.TRANSPARENT:4294967295;return e===r.documentElement?oe(B)?oe(n)?t:n:B:t};return function(A,e){return Js(A,e=void 0===e?{}:e)}});
2074;(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.oauthioWeb=f()}})(function(){var define,module,exports;return(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){module.exports={oauthd_url:"https://oauth.io",oauthd_api:"https://oauth.io/api",version:"web-0.5.1",options:{}};},{}],2:[function(require,module,exports){"use strict";module.exports=function(Materia){var $,apiCall;$=Materia.getJquery();apiCall=(function(_this){return function(type,url,params){var base,defer;defer=$.Deferred();base=Materia.getOAuthdURL();$.ajax({url:base+url,type:type,data:params}).then((function(data){return defer.resolve(data);}),(function(err){return defer.reject(err&&err.responseJSON);}));return defer.promise();};})(this);return{get:(function(_this){return function(url,params){return apiCall('get',url,params);};})(this),post:(function(_this){return function(url,params){return apiCall('post',url,params);};})(this),put:(function(_this){return function(url,params){return apiCall('put',url,params);};})(this),del:(function(_this){return function(url,params){return apiCall('delete',url,params);};})(this)};};},{}],3:[function(require,module,exports){"use strict";var Location,Url,cache,config,cookies,lstorage;config=require('../config');Url=require("../tools/url");Location=require('../tools/location_operations');
2074cookies=require("../tools/cookies");lstorage=require("../tools/lstorage");cache=require("../tools/cache");module.exports=function(window,document,jquery,navigator){var Materia,location_operations,storage;Url=Url(document);location_operations=Location(document);storage=lstorage.active()&&lstorage||cookies;cookies.init(config,document);cache.init(storage,config);Materia={initialize:function(public_key,options){var i;config.key=public_key;if(options){for(i in options){config.options[i]=options[i];}}},setOAuthdURL:function(url){config.oauthd_url=url;config.oauthd_base=Url.getAbsUrl(config.oauthd_url).match(/^.{2,5}:\/\/[^\/]+/)[0];},getOAuthdURL:function(){return config.oauthd_url;},getVersion:function(){return config.version;},extend:function(name,module){return this[name]=module(this);},getConfig:function(){return config;},getWindow:function(){return window;},getDocument:function(){return document;},getNavigator:function(){return navigator;},getJquery:function(){return jquery;},getUrl:function(){return Url;},getCache:function(){return cache;},getStorage:function(){return storage;},getLocationOperations:function(){return location_operations;}};return Materia;};},{"../config":1,"../tools/cache":9,"../tools/cookies":10,"../tools/location_operations":12,"../tools/lstorage":13,"../tools/url":15}],4:[function(require,module,exports){"use strict";var cookies,oauthio_requests,sha1;cookies=require("../tools/cookies");oauthio_requests=require("./request");sha1=require("../tools/sha1");module.exports=function(Materia){var $,Url,cache,client_states,config,document,location_operations,oauth,oauth_result,oauthio,parse_urlfragment,providers_api,window;Url=Materia.getUrl();config=Materia.getConfig();document=Materia.getDocument();window=Materia.getWindow();$=Materia.getJquery();cache=Materia.getCache();providers_api=require('./providers')(Materia);config.oauthd_base=Url.getAbsUrl(config.oauthd_url).match(/^.{2,5}:\/\/[^\/]+/)[0];client_states=[];oauth_result=void 0;(parse_urlfragment=function(){var cookie_state,results;results=/[\\#&]oauthio=([^&]*)/.exec(document.location.hash);if(results){document.location.hash=document.location.hash.replace(/&?oauthio=[^&]*/,"");oauth_result=decodeURIComponent(results[1].replace(/\+/g," "));cookie_state=cookies.read("oauthio_state");if(cookie_state){client_states.push(cookie_state);cookies.erase("oauthio_state");}}})();location_operations=Materia.getLocationOperations();oauthio={request:oauthio_requests(Materia,client_states,providers_api)};oauth={initialize:function(public_key,options){return Materia.initialize(public_key,options);},setOAuthdURL:function(url){config.oauthd_url=url;config.oauthd_base=Url.getAbsUrl(config.oauthd_url).match(/^.{2,5}:\/\/[^\/]+/)[0];},create:function(provider,tokens,request){var i,make_res,make_res_endpoint,res;if(!tokens){return cache.tryCache(oauth,provider,true);}
2075if(typeof request!=="object"){providers_api.fetchDescription(provider);}
2076make_res=function(method){return oauthio.request.mkHttp(provider,tokens,request,method);};make_res_endpoint=function(method,url){return oauthio.request.mkHttpEndpoint(provider,tokens,request,method,url);};res={};for(i in tokens){res[i]=tokens[i];}
2077res.toJson=function(){var a;a={};if(res.access_token!=null){a.access_token=res.access_token;}
2078if(res.oauth_token!=null){a.oauth_token=res.oauth_token;}
2079if(res.oauth_token_secret!=null){a.oauth_token_secret=res.oauth_token_secret;}
2080if(res.expires_in!=null){a.expires_in=res.expires_in;}
2081if(res.token_type!=null){a.token_type=res.token_type;}
2082if(res.id_token!=null){a.id_token=res.id_token;}
2083if(res.provider!=null){a.provider=res.provider;}
2084if(res.email!=null){a.email=res.email;}
2085return a;};res.get=make_res("GET");res.post=make_res("POST");res.put=make_res("PUT");res.patch=make_res("PATCH");res.del=make_res("DELETE");res.me=oauthio.request.mkHttpMe(provider,tokens,request,"GET");return res;},popup:function(provider,opts,callback){var defer,frm,getMessage,gotmessage,interval,res,url,wnd,wndTimeout,wnd_options,wnd_settings;gotmessage=false;getMessage=function(e){if(!gotmessage){if(e.origin!==config.oauthd_base){return;}
2086try{wnd.close();}catch(_error){}
2087opts.data=e.data;oauthio.request.sendCallback(opts,defer);return gotmessage=true;}};wnd=void 0;frm=void 0;wndTimeout=void 0;defer=$.Deferred();opts=opts||{};if(!config.key){if(defer!=null){defer.reject(new Error("OAuth object must be initialized"));}
2088if(callback==null){return defer.promise();}else{return callback(new Error("OAuth object must be initialized"));}}
2089if(arguments.length===2&&typeof opts==='function'){callback=opts;opts={};}
2090if(cache.cacheEnabled(opts.cache)){res=cache.tryCache(oauth,provider,opts.cache);if(res){if(defer!=null){defer.resolve(res);}
2091if(callback){return callback(null,res);}else{return defer.promise();}}}
2092if(!opts.state){opts.state=sha1.create_hash();opts.state_type="client";}
2093client_states.push(opts.state);url=config.oauthd_url+"/auth/"+provider+"?k="+config.key;url+="&d="+encodeURIComponent(Url.getAbsUrl("/"));if(opts){url+="&opts="+encodeURIComponent(JSON.stringify(opts));}
2094if(opts.wnd_settings){wnd_settings=opts.wnd_settings;delete opts.wnd_settings;}else{wnd_settings={width:Math.floor(window.outerWidth*0.8),height:Math.floor(window.outerHeight*0.5)};}
2095if(wnd_settings.width<1000){wnd_settings.width=1000;}
2096if(wnd_settings.height<630){wnd_settings.height=630;}
2097wnd_settings.left=Math.floor(window.screenX+(window.outerWidth-wnd_settings.width)/2);wnd_settings.top=Math.floor(window.screenY+(window.outerHeight-wnd_settings.height)/8);wnd_options="width="+wnd_settings.width+",height="+wnd_settings.height;wnd_options+=",toolbar=0,scrollbars=1,status=1,resizable=1,location=1,menuBar=0";wnd_options+=",left="+wnd_settings.left+",top="+wnd_settings.top;opts={provider:provider,cache:opts.cache};opts.callback=function(e,r){if(window.removeEventListener){window.removeEventListener("message",getMessage,false);}else if(window.detachEvent){window.detachEvent("onmessage",getMessage);}else{if(document.detachEvent){document.detachEvent("onmessage",getMessage);}}
2098opts.callback=function(){};if(wndTimeout){clearTimeout(wndTimeout);wndTimeout=undefined;}
2099if(callback){return callback(e,r);}else{return undefined;}};if(window.attachEvent){window.attachEvent("onmessage",getMessage);}else if(document.attachEvent){document.attachEvent("onmessage",getMessage);}else{if(window.addEventListener){window.addEventListener("message",getMessage,false);}}
2100if(typeof chrome!=="undefined"&&chrome.runtime&&chrome.runtime.onMessageExternal){chrome.runtime.onMessageExternal.addListener(function(request,sender,sendResponse){request.origin=sender.url.match(/^.{2,5}:\/\/[^\/]+/)[0];return getMessage(request);});}
2101if(!frm&&(navigator.userAgent.indexOf("MSIE")!==-1||navigator.appVersion.indexOf("Trident/")>0)){frm=document.createElement("iframe");frm.src=config.oauthd_url+"/auth/iframe?d="+encodeURIComponent(Url.getAbsUrl("/"));frm.width=0;frm.height=0;frm.frameBorder=0;frm.style.visibility="hidden";document.body.appendChild(frm);}
2102wndTimeout=setTimeout(function(){if(defer!=null){defer.reject(new Error("Authorization timed out"));}
2103if(opts.callback&&typeof opts.callback==="function"){opts.callback(new Error("Authorization timed out"));}
2104try{wnd.close();}catch(_error){}},1200*1000);wnd=window.open(url,"Authorization",wnd_options);if(wnd){wnd.focus();interval=window.setInterval(function(){if(wnd===null||wnd.closed){window.clearInterval(interval);if(!gotmessage){if(defer!=null){defer.reject(new Error("The popup was closed"));}
2105if(opts.callback&&typeof opts.callback==="function"){return opts.callback(new Error("The popup was closed"));}}}},500);}else{if(defer!=null){defer.reject(new Error("Could not open a popup"));}
2106if(opts.callback&&typeof opts.callback==="function"){opts.callback(new Error("Could not open a popup"));}}
2107return defer!=null?defer.promise():void 0;},redirect:function(provider,opts,url){var redirect_uri,res;if(arguments.length===2){url=opts;opts={};}
2108if(typeof url!=='string'){throw new Error('You must specify an url');}
2109if(cache.cacheEnabled(opts.cache)){res=cache.tryCache(oauth,provider,opts.cache);
2109if(res){url=Url.getAbsUrl(url)+(url.indexOf("#")===-1?"#":"&")+"oauthio=cache:"+provider;location_operations.changeHref(url);location_operations.reload();return;}}
2110if(!opts.state){opts.state=sha1.create_hash();opts.state_type="client";}
2111cookies.create("oauthio_state",opts.state);redirect_uri=encodeURIComponent(Url.getAbsUrl(url));url=config.oauthd_url+"/auth/"+provider+"?k="+config.key;url+="&redirect_uri="+redirect_uri;if(opts){url+="&opts="+encodeURIComponent(JSON.stringify(opts));}
2112location_operations.changeHref(url);},isRedirect:function(provider){var cache_provider,data,e;if(oauth_result==null){return false;}
2113if((oauth_result!=null?oauth_result.substr(0,6):void 0)==="cache:"){cache_provider=oauth_result!=null?oauth_result.substr(6):void 0;if(!provider){return cache_provider;}
2114return cache_provider.toLowerCase()===provider.toLowerCase();}
2115try{data=JSON.parse(oauth_result);}catch(_error){e=_error;return false;}
2116if(provider){return data.provider.toLowerCase()===provider.toLowerCase();}
2117return data.provider;},callback:function(provider,opts,callback){var defer,err,res;defer=$.Deferred();if(arguments.length===1&&typeof provider==="function"){callback=provider;provider=undefined;opts={};}
2118if(arguments.length===1&&typeof provider==="string"){opts={};}
2119if(arguments.length===2&&typeof opts==="function"){callback=opts;opts={};}
2120if(cache.cacheEnabled(opts!=null?opts.cache:void 0)||(oauth_result!=null?oauth_result.substr(0,6):void 0)==="cache:"){if(!provider&&(oauth_result!=null?oauth_result.substr(0,6):void 0)==="cache:"){provider=oauth_result.substr(6);}
2121res=cache.tryCache(oauth,provider,true);if(res){if(callback){if(res){return callback(null,res);}}else{if(defer!=null){defer.resolve(res);}
2122return defer!=null?defer.promise():void 0;}}else if((oauth_result!=null?oauth_result.substr(0,6):void 0)==="cache:"){err=new Error('Could not fetch data from cache');if(callback){return callback(err);}else{if(defer!=null){defer.reject(err);}
2123return defer!=null?defer.promise():void 0;}}}
2124if(!oauth_result){return;}
2125oauthio.request.sendCallback({data:oauth_result,provider:provider,cache:opts!=null?opts.cache:void 0,expires:opts!=null?opts.expires:void 0,callback:callback},defer);return defer!=null?defer.promise():void 0;},clearCache:function(provider){return cache.clearCache(provider);},http_me:function(opts){if(oauthio.request.http_me){oauthio.request.http_me(opts);}},http:function(opts){if(oauthio.request.http){oauthio.request.http(opts);}},getVersion:function(){return Materia.getVersion.apply(this);}};return oauth;};},{"../tools/cookies":10,"../tools/sha1":14,"./providers":5,"./request":6}],5:[function(require,module,exports){"use strict";var config;config=require("../config");module.exports=function(Materia){var $,providers_api,providers_cb,providers_desc;$=Materia.getJquery();providers_desc={};providers_cb={};providers_api={execProvidersCb:function(provider,e,r){var cbs,i;if(providers_cb[provider]){cbs=providers_cb[provider];delete providers_cb[provider];for(i in cbs){cbs[i](e,r);}}},fetchDescription:function(provider){if(providers_desc[provider]){return;}
2126providers_desc[provider]=true;$.ajax({url:config.oauthd_api+"/providers/"+provider,data:{extend:true},dataType:"json"}).done(function(data){providers_desc[provider]=data.data;providers_api.execProvidersCb(provider,null,data.data);}).always(function(){if(typeof providers_desc[provider]!=="object"){delete providers_desc[provider];providers_api.execProvidersCb(provider,new Error("Unable to fetch request description"));}});},getDescription:function(provider,opts,callback){opts=opts||{};if(typeof providers_desc[provider]==="object"){return callback(null,providers_desc[provider]);}
2127if(!providers_desc[provider]){providers_api.fetchDescription(provider);}
2128if(!opts.wait){return callback(null,{});}
2129providers_cb[provider]=providers_cb[provider]||[];providers_cb[provider].push(callback);}};return providers_api;};},{"../config":1}],6:[function(require,module,exports){"use strict";var Url,indexOf=[].indexOf||function(item){for(var i=0,l=this.length;i<l;i++){if(i in this&&this[i]===item)return i;}return-1;};Url=require('../tools/url')();module.exports=function(Materia,client_states,providers_api){var $,cache,config,extended_methods,fetched_methods;$=Materia.getJquery();config=Materia.getConfig();cache=Materia.getCache();extended_methods=[];fetched_methods=false;return{retrieveMethods:function(){var defer;defer=$.Deferred();if(!fetched_methods){$.ajax(config.oauthd_url+'/api/extended-endpoints').then(function(data){extended_methods=data.data;fetched_methods=true;return defer.resolve();}).fail(function(e){fetched_methods=true;return defer.reject(e);});}else{defer.resolve(extended_methods);}
2130return defer.promise();},generateMethods:function(request_object,tokens,provider){var j,k,kk,len,name_array,pt,results,v,vv;if(extended_methods!=null){results=[];for(k=j=0,len=extended_methods.length;j<len;k=++j){v=extended_methods[k];name_array=v.name.split('.');pt=request_object;results.push((function(){var l,len1,results1;results1=[];for(kk=l=0,len1=name_array.length;l<len1;kk=++l){vv=name_array[kk];if(kk<name_array.length-1){if(pt[vv]==null){pt[vv]={};}
2131results1.push(pt=pt[vv]);}else{results1.push(pt[vv]=this.mkHttpAll(provider,tokens,v,arguments));}}
2132return results1;}).apply(this,arguments));}
2133return results;}},http:function(opts){var defer,desc_opts,doRequest,i,options;doRequest=function(){var i,k,qs,request;request=options.oauthio.request||{};if(!request.cors){options.url=encodeURIComponent(options.url);if(options.url[0]!=="/"){options.url="/"+options.url;}
2134options.url=config.oauthd_url+"/request/"+options.oauthio.provider+options.url;options.headers=options.headers||{};options.headers.oauthio="k="+config.key;if(options.oauthio.tokens.oauth_token&&options.oauthio.tokens.oauth_token_secret){options.headers.oauthio+="&oauthv=1";}
2135for(k in options.oauthio.tokens){options.headers.oauthio+="&"+encodeURIComponent(k)+"="+encodeURIComponent(options.oauthio.tokens[k]);}
2136delete options.oauthio;return $.ajax(options);}
2137if(options.oauthio.tokens){if(options.oauthio.tokens.access_token){options.oauthio.tokens.token=options.oauthio.tokens.access_token;}
2138if(!options.url.match(/^[a-z]{2,16}:\/\//)){if(options.url[0]!=="/"){options.url="/"+options.url;}
2139options.url=request.url+options.url;}
2140options.url=Url.replaceParam(options.url,options.oauthio.tokens,request.parameters);if(request.query){qs=[];for(i in request.query){qs.push(encodeURIComponent(i)+"="+encodeURIComponent(Url.replaceParam(request.query[i],options.oauthio.tokens,request.parameters)));}
2141if(indexOf.call(options.url,"?")>=0){options.url+="&"+qs;}else{options.url+="?"+qs;}}
2142if(request.headers){options.headers=options.headers||{};for(i in request.headers){options.headers[i]=Url.replaceParam(request.headers[i],options.oauthio.tokens,request.parameters);}}
2143delete options.oauthio;return $.ajax(options);}};options={};i=void 0;for(i in opts){options[i]=opts[i];}
2144if(!options.oauthio.request||options.oauthio.request===true){desc_opts={wait:!!options.oauthio.request};defer=$.Deferred();providers_api.getDescription(options.oauthio.provider,desc_opts,function(e,desc){if(e){return defer.reject(e);}
2145if(options.oauthio.tokens.oauth_token&&options.oauthio.tokens.oauth_token_secret){options.oauthio.request=desc.oauth1&&desc.oauth1.request;}else{options.oauthio.request=desc.oauth2&&desc.oauth2.request;}
2146defer.resolve();});return defer.then(doRequest);}else{return doRequest();}},http_me:function(opts){var defer,desc_opts,doRequest,k,options;doRequest=function(){var defer,k,promise,request;defer=$.Deferred();request=options.oauthio.request||{};options.url=config.oauthd_url+"/auth/"+options.oauthio.provider+"/me";options.headers=options.headers||{};options.headers.oauthio="k="+config.key;if(options.oauthio.tokens.oauth_token&&options.oauthio.tokens.oauth_token_secret){options.headers.oauthio+="&oauthv=1";}
2147for(k in options.oauthio.tokens){options.headers.oauthio+="&"+encodeURIComponent(k)+"="+encodeURIComponent(options.oauthio.tokens[k]);}
2148delete options.oauthio;promise=$.ajax(options);$.when(promise).done(function(data){defer.resolve(data.data);}).fail(function(data){if(data.responseJSON){defer.reject(data.responseJSON.data);}else{defer.reject(new Error("An error occured while trying to access the resource"));}});return defer.promise();};options={};for(k in opts){options[k]=opts[k];}
2149if(!options.oauthio.request||options.oauthio.request===true){desc_opts={wait:!!options.oauthio.request};defer=$.Deferred();providers_api.getDescription(options.oauthio.provider,desc_opts,function(e,desc){if(e){return defer.reject(e);}
2150if(options.oauthio.tokens.oauth_token&&options.oauthio.tokens.oauth_token_secret){options.oauthio.request=desc.oauth1&&desc.oauth1.request;}else{options.oauthio.request=desc.oauth2&&desc.oauth2.request;}
2151defer.resolve();});return defer.then(doRequest);}else{return doRequest();}},http_all:function(options,endpoint_descriptor,parameters){var doRequest;doRequest=function(){var defer,k,promise,request;defer=$.Deferred();request=options.oauthio.request||{};options.headers=options.headers||{};options.headers.oauthio="k="+config.key;if(options.oauthio.tokens.oauth_token&&options.oauthio.tokens.oauth_token_secret){options.headers.oauthio+="&oauthv=1";}
2152for(k in options.oauthio.tokens){options.headers.oauthio+="&"+encodeURIComponent(k)+"="+encodeURIComponent(options.oauthio.tokens[k]);}
2153delete options.oauthio;promise=$.ajax(options);$.when(promise).done(function(data){var error;if(typeof data.data==='string'){try{data.data=JSON.parse(data.data);}catch(_error){error=_error;data.data=data.data;}finally{defer.resolve(data.data);}}}).fail(function(data){if(data.responseJSON){defer.reject(data.responseJSON.data);}else{defer.reject(new Error("An error occured while trying to access the resource"));}});return defer.promise();};return doRequest();},mkHttp:function(provider,tokens,request,method){var base;base=this;return function(opts,opts2){var i,options;options={};
2153if(typeof opts==="string"){if(typeof opts2==="object"){for(i in opts2){options[i]=opts2[i];}}
2154options.url=opts;}else if(typeof opts==="object"){for(i in opts){options[i]=opts[i];}}
2155options.type=options.type||method;options.oauthio={provider:provider,tokens:tokens,request:request};return base.http(options);};},mkHttpMe:function(provider,tokens,request,method){var base;base=this;return function(filter){var options;options={};options.type=options.type||method;options.oauthio={provider:provider,tokens:tokens,request:request};options.data=options.data||{};if(filter){options.data.filter=filter.join(",");}
2156return base.http_me(options);};},mkHttpAll:function(provider,tokens,endpoint_descriptor){var base;base=this;return function(){var k,options,th_param,v;options={};options.type=endpoint_descriptor.method;options.url=config.oauthd_url+endpoint_descriptor.endpoint.replace(':provider',provider);options.oauthio={provider:provider,tokens:tokens};options.data={};for(k in arguments){v=arguments[k];th_param=endpoint_descriptor.params[k];if(th_param!=null){options.data[th_param.name]=v;}}
2157options.data=options.data||{};return base.http_all(options,endpoint_descriptor,arguments);};},sendCallback:function(opts,defer){var base,data,e,err,i,make_res,request,res,tokens;base=this;data=void 0;err=void 0;try{data=JSON.parse(opts.data);}catch(_error){e=_error;defer.reject(new Error("Error while parsing result"));return opts.callback(new Error("Error while parsing result"));}
2158if(!data||!data.provider){return;}
2159if(opts.provider&&data.provider.toLowerCase()!==opts.provider.toLowerCase()){err=new Error("Returned provider name does not match asked provider");defer.reject(err);if(opts.callback&&typeof opts.callback==="function"){return opts.callback(err);}else{return;}}
2160if(data.status==="error"||data.status==="fail"){err=new Error(data.message);err.body=data.data;defer.reject(err);if(opts.callback&&typeof opts.callback==="function"){return opts.callback(err);}else{return;}}
2161if(data.status!=="success"||!data.data){err=new Error();err.body=data.data;defer.reject(err);if(opts.callback&&typeof opts.callback==="function"){return opts.callback(err);}else{return;}}
2162data.state=data.state.replace(/\s+/g,"");i=0;while(i<client_states.length){client_states[i]=client_states[i].replace(/\s+/g,"");i++;}
2163if(!data.state||client_states.indexOf(data.state)===-1){defer.reject(new Error("State is not matching"));if(opts.callback&&typeof opts.callback==="function"){return opts.callback(new Error("State is not matching"));}else{return;}}
2164if(!opts.provider){data.data.provider=data.provider;}
2165res=data.data;res.provider=data.provider.toLowerCase();if(cache.cacheEnabled(opts.cache)&&res){if(opts.expires&&!res.expires_in){res.expires_in=opts.expires;}
2166cache.storeCache(data.provider,res);}
2167request=res.request;delete res.request;tokens=void 0;if(res.access_token){tokens={access_token:res.access_token};}else if(res.oauth_token&&res.oauth_token_secret){tokens={oauth_token:res.oauth_token,oauth_token_secret:res.oauth_token_secret};}
2168if(!request){defer.resolve(res);if(opts.callback&&typeof opts.callback==="function"){return opts.callback(null,res);}else{return;}}
2169if(request.required){for(i in request.required){tokens[request.required[i]]=res[request.required[i]];}}
2170make_res=function(method){return base.mkHttp(data.provider,tokens,request,method);};res.toJson=function(){var a;a={};if(res.access_token!=null){a.access_token=res.access_token;}
2171if(res.oauth_token!=null){a.oauth_token=res.oauth_token;}
2172if(res.oauth_token_secret!=null){a.oauth_token_secret=res.oauth_token_secret;}
2173if(res.expires_in!=null){a.expires_in=res.expires_in;}
2174if(res.token_type!=null){a.token_type=res.token_type;}
2175if(res.id_token!=null){a.id_token=res.id_token;}
2176if(res.provider!=null){a.provider=res.provider;}
2177if(res.email!=null){a.email=res.email;}
2178return a;};res.get=make_res("GET");res.post=make_res("POST");res.put=make_res("PUT");res.patch=make_res("PATCH");res.del=make_res("DELETE");res.me=base.mkHttpMe(data.provider,tokens,request,"GET");return this.retrieveMethods().then((function(_this){return function(){_this.generateMethods(res,tokens,data.provider);defer.resolve(res);if(opts.callback&&typeof opts.callback==="function"){return opts.callback(null,res);}else{}};})(this)).fail((function(_this){return function(e){console.log('Could not retrieve methods',e);defer.resolve(res);if(opts.callback&&typeof opts.callback==="function"){return opts.callback(null,res);}else{}};})(this));}};};},{"../tools/url":15}],7:[function(require,module,exports){"use strict";module.exports=function(Materia){var $,UserObject,config,lastSave,storage;$=Materia.getJquery();config=Materia.getConfig();storage=Materia.getStorage();lastSave=null;UserObject=(function(){function UserObject(data){this.token=data.token;this.data=data.user;this.providers=data.providers;lastSave=this.getEditableData();}
2179UserObject.prototype.getEditableData=function(){var data,key;data=[];for(key in this.data){if(['id','email'].indexOf(key)===-1){data.push({key:key,value:this.data[key]});}}
2180return data;};
2180UserObject.prototype.save=function(){var d,dataToSave,i,j,keyIsInLastSave,len,len1,ref;dataToSave={};for(i=0,len=lastSave.length;i<len;i++){d=lastSave[i];if(this.data[d.key]!==d.value){dataToSave[d.key]=this.data[d.key];}
2181if(this.data[d.key]===null){delete this.data[d.key];}}
2182keyIsInLastSave=function(key){var j,len1,o;for(j=0,len1=lastSave.length;j<len1;j++){o=lastSave[j];if(o.key===key){return true;}}
2183return false;};ref=this.getEditableData();for(j=0,len1=ref.length;j<len1;j++){d=ref[j];if(!keyIsInLastSave(d.key)){dataToSave[d.key]=this.data[d.key];}}
2184this.saveLocal();return Materia.API.put('/api/usermanagement/user?k='+config.key+'&token='+this.token,dataToSave);};UserObject.prototype.select=function(provider){var OAuthResult;OAuthResult=null;return OAuthResult;};UserObject.prototype.saveLocal=function(){var copy;copy={token:this.token,user:this.data,providers:this.providers};storage.erase('oio_auth');return storage.create('oio_auth',JSON.stringify(copy),21600);};UserObject.prototype.hasProvider=function(provider){var ref;return((ref=this.providers)!=null?ref.indexOf(provider):void 0)!==-1;};UserObject.prototype.getProviders=function(){var defer;defer=$.Deferred();Materia.API.get('/api/usermanagement/user/providers?k='+config.key+'&token='+this.token).done((function(_this){return function(providers){_this.providers=providers.data;_this.saveLocal();return defer.resolve(_this.providers);};})(this)).fail(function(err){return defer.reject(err);});return defer.promise();};UserObject.prototype.addProvider=function(oauthRes){var defer;defer=$.Deferred();if(typeof oauthRes.toJson==='function'){oauthRes=oauthRes.toJson();}
2185oauthRes.email=this.data.email;this.providers.push(oauthRes.provider);Materia.API.post('/api/usermanagement/user/providers?k='+config.key+'&token='+this.token,oauthRes).done((function(_this){return function(res){_this.data=res.data;_this.saveLocal();return defer.resolve();};})(this)).fail((function(_this){return function(err){_this.providers.splice(_this.providers.indexOf(oauthRes.provider),1);return defer.reject(err);};})(this));return defer.promise();};UserObject.prototype.removeProvider=function(provider){var defer;defer=$.Deferred();this.providers.splice(this.providers.indexOf(provider),1);Materia.API.del('/api/usermanagement/user/providers/'+provider+'?k='+config.key+'&token='+this.token).done((function(_this){return function(res){_this.saveLocal();return defer.resolve(res);};})(this)).fail((function(_this){return function(err){_this.providers.push(provider);return defer.reject(err);};})(this));return defer.promise();};UserObject.prototype.changePassword=function(oldPassword,newPassword){return Materia.API.post('/api/usermanagement/user/password?k='+config.key+'&token='+this.token,{password:newPassword});};UserObject.prototype.isLoggued=function(){return Materia.User.isLogged();};UserObject.prototype.isLogged=function(){return Materia.User.isLogged();};UserObject.prototype.logout=function(){var defer;defer=$.Deferred();storage.erase('oio_auth');Materia.API.post('/api/usermanagement/user/logout?k='+config.key+'&token='+this.token).done(function(){return defer.resolve();}).fail(function(err){return defer.reject(err);});return defer.promise();};return UserObject;})();return{initialize:function(public_key,options){return Materia.initialize(public_key,options);},setOAuthdURL:function(url){return Materia.setOAuthdURL(url);},signup:function(data){var defer;defer=$.Deferred();if(typeof data.toJson==='function'){data=data.toJson();}
2186Materia.API.post('/api/usermanagement/signup?k='+config.key,data).done(function(res){storage.create('oio_auth',JSON.stringify(res.data),res.data.expires_in||21600);return defer.resolve(new UserObject(res.data));}).fail(function(err){return defer.reject(err);});return defer.promise();},signin:function(email,password){var defer,signinData;defer=$.Deferred();if(typeof email!=="string"&&!password){signinData=email;if(typeof signinData.toJson==='function'){signinData=signinData.toJson();}
2187Materia.API.post('/api/usermanagement/signin?k='+config.key,signinData).done(function(res){storage.create('oio_auth',JSON.stringify(res.data),res.data.expires_in||21600);return defer.resolve(new UserObject(res.data));}).fail(function(err){return defer.reject(err);});}else{Materia.API.post('/api/usermanagement/signin?k='+config.key,{email:email,password:password}).done(function(res){storage.create('oio_auth',JSON.stringify(res.data),res.data.expires_in||21600);return defer.resolve(new UserObject(res.data));}).fail(function(err){return defer.reject(err);});}
2188return defer.promise();},confirmResetPassword:function(newPassword,sptoken){return Materia.API.post('/api/usermanagement/user/password?k='+config.key,{password:newPassword,token:sptoken});},resetPassword:function(email,callback){return Materia.API.post('/api/usermanagement/user/password/reset?k='+config.key,{email:email});},refreshIdentity:function(){var defer;defer=$.Deferred();Materia.API.get('/api/usermanagement/user?k='+config.key+'&token='+JSON.parse(storage.read('oio_auth')).token).done(function(res){return defer.resolve(new UserObject(res.data));}).fail(function(err){return defer.reject(err);});return defer.promise();},getIdentity:function(){var user;user=storage.read('oio_auth');if(!user){return null;}
2189return new UserObject(JSON.parse(user));},isLogged:function(){var a;a=storage.read('oio_auth');if(a){return true;}
2190return false;}};};},{}],8:[function(require,module,exports){(function(){var Materia,jquery;jquery=require('./tools/jquery-lite.js');Materia=require('./lib/core')(window,document,jquery,navigator);Materia.extend('OAuth',require('./lib/oauth'));Materia.extend('API',require('./lib/api'));Materia.extend('User',require('./lib/user'));if(typeof angular!=="undefined"&&angular!==null){angular.module('oauthio',[]).factory('Materia',[function(){return Materia;}]).factory('OAuth',[function(){return Materia.OAuth;}]).factory('User',[function(){return Materia.User;}]);}
2191window.Materia=exports.Materia=Materia;window.User=exports.User=exports.Materia.User;window.OAuth=exports.OAuth=exports.Materia.OAuth;if(typeof define==='function'&&define.amd){define(function(){return exports;});}
2192if((typeof module!=="undefined"&&module!==null?module.exports:void 0)){module.exports=exports;}
2193return exports;})();},{"./lib/api":2,"./lib/core":3,"./lib/oauth":4,"./lib/user":7,"./tools/jquery-lite.js":11}],9:[function(require,module,exports){"use strict";module.exports={init:function(storage,config){this.config=config;return this.storage=storage;},tryCache:function(OAuth,provider,cache){var e,i,res;if(this.cacheEnabled(cache)){cache=this.storage.read("oauthio_provider_"+provider);if(!cache){return false;}
2194cache=decodeURIComponent(cache);}
2195if(typeof cache==="string"){try{cache=JSON.parse(cache);}catch(_error){e=_error;return false;}}
2196if(typeof cache==="object"){res={};for(i in cache){if(i!=="request"&&typeof cache[i]!=="function"){res[i]=cache[i];}}
2197return OAuth.create(provider,res,cache.request);}
2198return false;},storeCache:function(provider,cache){var expires;expires=3600;if(cache.expires_in){expires=cache.expires_in;}else if(this.config.options.expires||this.config.options.expires===false){expires=this.config.options.expires;}
2199this.storage.create("oauthio_provider_"+provider,encodeURIComponent(JSON.stringify(cache)),expires);},cacheEnabled:function(cache){if(typeof cache==="undefined"){return this.config.options.cache;}
2200return cache;},clearCache:function(provider){if(provider){this.storage.erase("oauthio_provider_"+provider);}else{this.storage.eraseFrom("oauthio_provider_");}}};},{}],10:[function(require,module,exports){"use strict";module.exports={init:function(config,document){this.config=config;return this.document=document;},create:function(name,value,expires){var date;this.erase(name);date=new Date();if(expires){date.setTime(date.getTime()+(expires||1200)*1000);}else{date.setFullYear(date.getFullYear()+3);}
2201expires="; expires="+date.toGMTString();this.document.cookie=name+"="+value+expires+"; path=/";},read:function(name){var c,ca,i,nameEQ;nameEQ=name+"=";ca=this.document.cookie.split(";");i=0;while(i<ca.length){c=ca[i];while(c.charAt(0)===" "){c=c.substring(1,c.length);}
2202if(c.indexOf(nameEQ)===0){return c.substring(nameEQ.length,c.length);}
2203i++;}
2204return null;},erase:function(name){var date;date=new Date();date.setTime(date.getTime()-86400000);this.document.cookie=name+"=; expires="+date.toGMTString()+"; path=/";},eraseFrom:function(prefix){var cname,cookie,cookies,j,len;cookies=this.document.cookie.split(";");for(j=0,len=cookies.length;j<len;j++){cookie=cookies[j];cname=cookie.split("=")[0].trim();if(cname.substr(0,prefix.length)===prefix){this.erase(cname);}}}};},{}],11:[function(require,module,exports){
2205/*!
2206     * jQuery JavaScript Library v2.1.1 -attributes,-attributes/attr,-attributes/classes,-attributes/prop,-attributes/support,-attributes/val,-css/addGetHookIf,-css/curCSS,-css/defaultDisplay,-css/hiddenVisibleSelectors,-css/support,-css/swap,-css/var,-css/var/cssExpand,-css/var/getStyles,-css/var/isHidden,-css/var/rmargin,-css/var/rnumnonpx,-css,-effects,-effects/Tween,-effects/animatedSelector,-dimensions,-offset,-data/var/data_user,-deprecated,-event/alias,-event/support,-intro,-manipulation/_evalUrl,-manipulation/support,-manipulation/var,-manipulation/var/rcheckableType,-manipulation,-outro,-queue,-queue/delay,-selector-native,-selector-sizzle,-sizzle/dist,-sizzle/dist/sizzle,-sizzle/dist/min,-sizzle/test,-sizzle/test/jquery,-traversing,-traversing/findFilter,-traversing/var/rneedsContext,-traversing/var,-wrap,-exports,-exports/amd
2207     * http://jquery.com/
2208     *
2209     * Includes Sizzle.js
2210     * http://sizzlejs.com/
2211     *
2212     * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
2213     * Released under the MIT license
2214     * http://jquery.org/license
2215     *
2216     * Date: 2015-10-12T19:37Z
2217     */
2218(function(global,factory){if(typeof module==="object"&&typeof module.exports==="object"){module.exports=global.document?factory(global,true):function(w){if(!w.document){throw new Error("jQuery requires a window with a document");}
2219return factory(w);};}else{factory(global);}}(typeof window!=="undefined"?window:this,function(window,noGlobal){var arr=[];var slice=arr.slice;var concat=arr.concat;var push=arr.push;var indexOf=arr.indexOf;var class2type={};var toString=class2type.toString;var hasOwn=class2type.hasOwnProperty;var support={};var
2220document=window.document,version="2.1.1 -attributes,-attributes/attr,-attributes/classes,-attributes/prop,-attributes/support,-attributes/val,
2220-css/addGetHookIf,-css/curCSS,-css/defaultDisplay,-css/hiddenVisibleSelectors,-css/support,-css/swap,-css/var,-css/var/cssExpand,-css/var/getStyles,-css/var/isHidden,-css/var/rmargin,-css/var/rnumnonpx,-css,-effects,-effects/Tween,-effects/animatedSelector,-dimensions,-offset,-data/var/data_user,-deprecated,-event/alias,-event/support,-intro,-manipulation/_evalUrl,-manipulation/support,-manipulation/var,-manipulation/var/rcheckableType,-manipulation,-outro,-queue,-queue/delay,-selector-native,-selector-sizzle,-sizzle/dist,-sizzle/dist/sizzle,-sizzle/dist/min,-sizzle/test,-sizzle/test/jquery,-traversing,-traversing/findFilter,-traversing/var/rneedsContext,-traversing/var,-wrap,-exports,-exports/amd",jQuery=function(selector,context){return new jQuery.fn.init(selector,context);},rtrim=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,rmsPrefix=/^-ms-/,rdashAlpha=/-([\da-z])/gi,fcamelCase=function(all,letter){return letter.toUpperCase();};jQuery.fn=jQuery.prototype={jquery:version,constructor:jQuery,selector:"",length:0,toArray:function(){return slice.call(this);},get:function(num){return num!=null?(num<0?this[num+this.length]:this[num]):slice.call(this);},pushStack:function(elems){var ret=jQuery.merge(this.constructor(),elems);ret.prevObject=this;ret.context=this.context;return ret;},each:function(callback,args){return jQuery.each(this,callback,args);},map:function(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem);}));},slice:function(){return this.pushStack(slice.apply(this,arguments));},first:function(){return this.eq(0);},last:function(){return this.eq(-1);},eq:function(i){var len=this.length,j=+i+(i<0?len:0);return this.pushStack(j>=0&&j<len?[this[j]]:[]);},end:function(){return this.prevObject||this.constructor(null);},push:push,sort:arr.sort,splice:arr.splice};jQuery.extend=jQuery.fn.extend=function(){var options,name,src,copy,copyIsArray,clone,target=arguments[0]||{},i=1,length=arguments.length,deep=false;if(typeof target==="boolean"){deep=target;target=arguments[i]||{};i++;}
2221if(typeof target!=="object"&&!jQuery.isFunction(target)){target={};}
2222if(i===length){target=this;i--;}
2223for(;i<length;i++){if((options=arguments[i])!=null){for(name in options){src=target[name];copy=options[name];if(target===copy){continue;}
2224if(deep&&copy&&(jQuery.isPlainObject(copy)||(copyIsArray=jQuery.isArray(copy)))){if(copyIsArray){copyIsArray=false;clone=src&&jQuery.isArray(src)?src:[];}else{clone=src&&jQuery.isPlainObject(src)?src:{};}
2225target[name]=jQuery.extend(deep,clone,copy);}else if(copy!==undefined){target[name]=copy;}}}}
2226return target;};jQuery.extend({expando:"jQuery"+(version+Math.random()).replace(/\D/g,""),isReady:true,error:function(msg){throw new Error(msg);},noop:function(){},isFunction:function(obj){return jQuery.type(obj)==="function";},isArray:Array.isArray,isWindow:function(obj){return obj!=null&&obj===obj.window;},isNumeric:function(obj){return!jQuery.isArray(obj)&&obj-parseFloat(obj)>=0;},isPlainObject:function(obj){if(jQuery.type(obj)!=="object"||obj.nodeType||jQuery.isWindow(obj)){return false;}
2227if(obj.constructor&&!hasOwn.call(obj.constructor.prototype,"isPrototypeOf")){return false;}
2228return true;},isEmptyObject:function(obj){var name;for(name in obj){return false;}
2229return true;},type:function(obj){if(obj==null){return obj+"";}
2230return typeof obj==="object"||typeof obj==="function"?class2type[toString.call(obj)]||"object":typeof obj;},globalEval:function(code){var script,indirect=eval;code=jQuery.trim(code);if(code){if(code.indexOf("use strict")===1){script=document.createElement("script");script.text=code;document.head.appendChild(script).parentNode.removeChild(script);}else{indirect(code);}}},camelCase:function(string){return string.replace(rmsPrefix,"ms-").replace(rdashAlpha,fcamelCase);},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toLowerCase()===name.toLowerCase();},each:function(obj,callback,args){var value,i=0,length=obj.length,isArray=isArraylike(obj);if(args){if(isArray){for(;i<length;i++){value=callback.apply(obj[i],args);if(value===false){break;}}}else{for(i in obj){value=callback.apply(obj[i],args);if(value===false){break;}}}}else{if(isArray){for(;i<length;i++){value=callback.call(obj[i],i,obj[i]);if(value===false){break;}}}else{for(i in obj){value=callback.call(obj[i],i,obj[i]);if(value===false){break;}}}}
2231return obj;},trim:function(text){return text==null?"":(text+"").replace(rtrim,"");},makeArray:function(arr,results){var ret=results||[];if(arr!=null){if(isArraylike(Object(arr))){jQuery.merge(ret,typeof arr==="string"?[arr]:arr);}else{push.call(ret,arr);}}
2232return ret;},inArray:function(elem,arr,i){return arr==null?-1:indexOf.call(arr,elem,i);},merge:function(first,second){var len=+second.length,j=0,i=first.length;for(;j<len;j++){first[i++]=second[j];}
2233first.length=i;return first;},grep:function(elems,callback,invert){var callbackInverse,matches=[],i=0,length=elems.length,callbackExpect=!invert;for(;i<length;i++){callbackInverse=!callback(elems[i],i);if(callbackInverse!==callbackExpect){matches.push(elems[i]);}}
2234return matches;},map:function(elems,callback,arg){var value,i=0,length=elems.length,isArray=isArraylike(elems),ret=[];if(isArray){for(;i<length;i++){value=callback(elems[i],i,arg);if(value!=null){ret.push(value);}}}else{for(i in elems){value=callback(elems[i],i,arg);if(value!=null){ret.push(value);}}}
2235return concat.apply([],ret);},guid:1,proxy:function(fn,context){var tmp,args,proxy;if(typeof context==="string"){tmp=fn[context];context=fn;fn=tmp;}
2236if(!jQuery.isFunction(fn)){return undefined;}
2237args=slice.call(arguments,2);proxy=function(){return fn.apply(context||this,args.concat(slice.call(arguments)));};proxy.guid=fn.guid=fn.guid||jQuery.guid++;return proxy;},now:Date.now,support:support});jQuery.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(i,name){class2type["[object "+name+"]"]=name.toLowerCase();});function isArraylike(obj){var length=obj.length,type=jQuery.type(obj);if(type==="function"||jQuery.isWindow(obj)){return false;}
2238if(obj.nodeType===1&&length){return true;}
2239return type==="array"||length===0||typeof length==="number"&&length>0&&(length-1)in obj;}
2240var rsingleTag=(/^<(\w+)\s*\/?>(?:<\/\1>|)$/);var rootjQuery,rquickExpr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,init=jQuery.fn.init=function(selector,context){var match,elem;if(!selector){return this;}
2241if(typeof selector==="string"){if(selector[0]==="<"&&selector[selector.length-1]===">"&&selector.length>=3){match=[null,selector,null];}else{match=rquickExpr.exec(selector);}
2242if(match&&(match[1]||!context)){if(match[1]){context=context instanceof jQuery?context[0]:context;jQuery.merge(this,jQuery.parseHTML(match[1],context&&context.nodeType?context.ownerDocument||context:document,true));if(rsingleTag.test(match[1])&&jQuery.isPlainObject(context)){for(match in context){if(jQuery.isFunction(this[match])){this[match](context[match]);}else{this.attr(match,context[match]);}}}
2243return this;}else{elem=document.getElementById(match[2]);if(elem&&elem.parentNode){this.length=1;this[0]=elem;}
2244this.context=document;this.selector=selector;return this;}}else if(!context||context.jquery){return(context||rootjQuery).find(selector);}else{return this.constructor(context).find(selector);}}else if(selector.nodeType){this.context=this[0]=selector;this.length=1;return this;}else if(jQuery.isFunction(selector)){return typeof rootjQuery.ready!=="undefined"?rootjQuery.ready(selector):selector(jQuery);}
2245if(selector.selector!==undefined){this.selector=selector.selector;this.context=selector.context;}
2246return jQuery.makeArray(selector,this);};init.prototype=jQuery.fn;rootjQuery=jQuery(document);var rnotwhite=(/\S+/g);var optionsCache={};function createOptions(options){var object=optionsCache[options]={};jQuery.each(options.match(rnotwhite)||[],function(_,flag){object[flag]=true;});return object;}
2247jQuery.Callbacks=function(options){options=typeof options==="string"?(optionsCache[options]||createOptions(options)):jQuery.extend({},options);var
2248memory,fired,firing,firingStart,firingLength,firingIndex,list=[],stack=!options.once&&[],fire=function(data){memory=options.memory&&data;fired=true;firingIndex=firingStart||0;firingStart=0;firingLength=list.length;firing=true;for(;list&&firingIndex<firingLength;firingIndex++){if(list[firingIndex].apply(data[0],data[1])===false&&options.stopOnFalse){memory=false;break;}}
2249firing=false;if(list){if(stack){if(stack.length){fire(stack.shift());}}else if(memory){list=[];}else{self.disable();}}},self={add:function(){if(list){var start=list.length;(function add(args){jQuery.each(args,function(_,arg){var type=jQuery.type(arg);if(type==="function"){if(!options.unique||!self.has(arg)){list.push(arg);}}else if(arg&&arg.length&&type!=="string"){add(arg);}});})(arguments);if(firing){firingLength=list.length;}else if(memory){firingStart=start;fire(memory);}}
2250return this;},remove:function(){if(list){jQuery.each(arguments,function(_,arg){var index;while((index=jQuery.inArray(arg,list,index))>-1){list.splice(index,1);if(firing){if(index<=firingLength){firingLength--;}
2251if(index<=firingIndex){firingIndex--;}}}});}
2252return this;},has:function(fn){return fn?jQuery.inArray(fn,list)>-1:!!(list&&list.length);},empty:function(){list=[];firingLength=0;return this;},disable:function(){list=stack=memory=undefined;return this;},disabled:function(){return!list;},lock:function(){stack=undefined;if(!memory){self.disable();}
2253return this;},locked:function(){return!stack;},fireWith:function(context,args){if(list&&(!fired||stack)){args=args||[];args=[context,args.slice?args.slice():args];if(firing){stack.push(args);}else{fire(args);}}
2254return this;},fire:function(){self.fireWith(this,arguments);return this;},fired:function(){return!!fired;}};return self;};jQuery.extend({Deferred:function(func){var tuples=[["resolve","done",jQuery.Callbacks("once memory"),"resolved"],["reject","fail",jQuery.Callbacks("once memory"),"rejected"],["notify","progress",jQuery.Callbacks("memory")]],state="pending",promise={state:function(){return state;},always:function(){deferred.done(arguments).fail(arguments);return this;},then:function(){var fns=arguments;return jQuery.Deferred(function(newDefer){jQuery.each(tuples,function(i,tuple){var fn=jQuery.isFunction(fns[i])&&fns[i];deferred[tuple[1]](function(){var returned=fn&&fn.apply(this,arguments);if(returned&&jQuery.isFunction(returned.promise)){returned.promise().done(newDefer.resolve).fail(newDefer.reject).progress(newDefer.notify);}else{newDefer[tuple[0]+"With"](this===promise?newDefer.promise():this,fn?[returned]:arguments);}});});fns=null;}).promise();},promise:function(obj){return obj!=null?jQuery.extend(obj,promise):promise;}},deferred={};promise.pipe=promise.then;jQuery.each(tuples,function(i,tuple){var list=tuple[2],stateString=tuple[3];promise[tuple[1]]=list.add;if(stateString){list.add(function(){state=stateString;},tuples[i^1][2].disable,tuples[2][2].lock);}
2255deferred[tuple[0]]=function(){deferred[tuple[0]+"With"](this===deferred?promise:this,arguments);return this;};deferred[tuple[0]+"With"]=list.fireWith;});promise.promise(deferred);if(func){func.call(deferred,deferred);}
2256return deferred;},when:function(subordinate){var i=0,resolveValues=slice.call(arguments),length=resolveValues.length,remaining=length!==1||(subordinate&&jQuery.isFunction(subordinate.promise))?length:0,deferred=remaining===1?subordinate:jQuery.Deferred(),updateFunc=function(i,contexts,values){return function(value){contexts[i]=this;values[i]=arguments.length>1?slice.call(arguments):value;if(values===progressValues){deferred.notifyWith(contexts,values);}else if(!(--remaining)){deferred.resolveWith(contexts,values);}};},progressValues,progressContexts,resolveContexts;if(length>1){progressValues=new Array(length);progressContexts=new Array(length);resolveContexts=new Array(length);for(;i<length;i++){if(resolveValues[i]&&jQuery.isFunction(resolveValues[i].promise)){resolveValues[i].promise().done(updateFunc(i,resolveContexts,resolveValues)).fail(deferred.reject).progress(updateFunc(i,progressContexts,progressValues));}else{--remaining;}}}
2257if(!remaining){deferred.resolveWith(resolveContexts,resolveValues);}
2258return deferred.promise();}});var readyList;jQuery.fn.ready=function(fn){jQuery.ready.promise().done(fn);return this;};jQuery.extend({isReady:false,readyWait:1,holdReady:function(hold){if(hold){jQuery.readyWait++;}else{jQuery.ready(true);}},ready:function(wait){if(wait===true?--jQuery.readyWait:jQuery.isReady){return;}
2259jQuery.isReady=true;if(wait!==true&&--jQuery.readyWait>0){return;}
2260readyList.resolveWith(document,[jQuery]);if(jQuery.fn.triggerHandler){jQuery(document).triggerHandler("ready");jQuery(document).off("ready");}}});function completed(){document.removeEventListener("DOMContentLoaded",completed,false);window.removeEventListener("load",completed,false);jQuery.ready();}
2261jQuery.ready.promise=function(obj){if(!readyList){readyList=jQuery.Deferred();if(document.readyState==="complete"){setTimeout(jQuery.ready);}else{document.addEventListener("DOMContentLoaded",completed,false);window.addEventListener("load",completed,false);}}
2262return readyList.promise(obj);};jQuery.ready.promise();var access=jQuery.access=function(elems,fn,key,value,chainable,emptyGet,raw){var i=0,len=elems.length,bulk=key==null;if(jQuery.type(key)==="object"){chainable=true;for(i in key){jQuery.access(elems,fn,i,key[i],true,emptyGet,raw);}}else if(value!==undefined){chainable=true;if(!jQuery.isFunction(value)){raw=true;}
2263if(bulk){if(raw){fn.call(elems,value);fn=null;}else{bulk=fn;fn=function(elem,key,value){return bulk.call(jQuery(elem),value);};}}
2264if(fn){for(;i<len;i++){fn(elems[i],key,raw?value:value.call(elems[i],i,fn(elems[i],key)));}}}
2265return chainable?elems:bulk?fn.call(elems):len?fn(elems[0],key):emptyGet;};jQuery.acceptData=function(owner){return owner.nodeType===1||owner.nodeType===9||!(+owner.nodeType);};function Data(){Object.defineProperty(this.cache={},0,{get:function(){return{};}});this.expando=jQuery.expando+Math.random();}
2266Data.uid=1;Data.accepts=jQuery.acceptData;Data.prototype={key:function(owner){if(!Data.accepts(owner)){return 0;}
2267var descriptor={},unlock=owner[this.expando];if(!unlock){unlock=Data.uid++;try{descriptor[this.expando]={value:unlock};Object.defineProperties(owner,descriptor);}catch(e){descriptor[this.expando]=unlock;jQuery.extend(owner,descriptor);}}
2268if(!this.cache[unlock]){this.cache[unlock]={};}
2269return unlock;},set:function(owner,data,value){var prop,unlock=this.key(owner),cache=this.cache[unlock];if(typeof data==="string"){cache[data]=value;}else{if(jQuery.isEmptyObject(cache)){jQuery.extend(this.cache[unlock],data);}else{for(prop in data){cache[prop]=data[prop];}}}
2270return cache;},get:function(owner,key){var cache=this.cache[this.key(owner)];return key===undefined?cache:cache[key];},access:function(owner,key,value){var stored;if(key===undefined||((key&&typeof key==="string")&&value===undefined)){stored=this.get(owner,key);return stored!==undefined?stored:this.get(owner,jQuery.camelCase(key));}
2271this.set(owner,key,value);return value!==undefined?value:key;},remove:function(owner,key){var i,name,camel,unlock=this.key(owner),cache=this.cache[unlock];if(key===undefined){this.cache[unlock]={};}else{if(jQuery.isArray(key)){name=key.concat(key.map(jQuery.camelCase));}else{camel=jQuery.camelCase(key);if(key in cache){name=[key,camel];}else{name=camel;name=name in cache?[name]:(name.match(rnotwhite)||[]);}}
2272i=name.length;while(i--){delete cache[name[i]];}}},hasData:function(owner){return!jQuery.isEmptyObject(this.cache[owner[this.expando]]||{});},discard:function(owner){if(owner[this.expando]){delete this.cache[owner[this.expando]];}}};var data_priv=new Data();var rbrace=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,rmultiDash=/([A-Z])/g;function dataAttr(elem,key,data){var name;if(data===undefined&&elem.nodeType===1){name="data-"+key.replace(rmultiDash,"-$1").toLowerCase();data=elem.getAttribute(name);if(typeof data==="string"){try{data=data==="true"?true:data==="false"?false:data==="null"?null:+data+""===data?+data:rbrace.test(data)?jQuery.parseJSON(data):data;}catch(e){}
2273data_user.set(elem,key,data);}else{data=undefined;}}
2274return data;}
2275jQuery.extend({hasData:function(elem){return data_user.hasData(elem)||data_priv.hasData(elem);},data:function(elem,name,data){return data_user.access(elem,name,data);},removeData:function(elem,name){data_user.remove(elem,name);},_data:function(elem,name,data){return data_priv.access(elem,name,data);},_removeData:function(elem,name){data_priv.remove(elem,name);}});jQuery.fn.extend({data:function(key,value){var i,name,data,elem=this[0],attrs=elem&&elem.attributes;if(key===undefined){if(this.length){data=data_user.get(elem);if(elem.nodeType===1&&!data_priv.get(elem,"hasDataAttrs")){i=attrs.length;while(i--){if(attrs[i]){name=attrs[i].name;if(name.indexOf("data-")===0){name=jQuery.camelCase(name.slice(5));dataAttr(elem,name,data[name]);}}}
2276data_priv.set(elem,"hasDataAttrs",true);}}
2277return data;}
2278if(typeof key==="object"){return this.each(function(){data_user.set(this,key);});}
2279return access(this,function(value){var data,camelKey=jQuery.camelCase(key);if(elem&&value===undefined){data=data_user.get(elem,key);
2279if(data!==undefined){return data;}
2280data=data_user.get(elem,camelKey);if(data!==undefined){return data;}
2281data=dataAttr(elem,camelKey,undefined);if(data!==undefined){return data;}
2282return;}
2283this.each(function(){var data=data_user.get(this,camelKey);data_user.set(this,camelKey,value);if(key.indexOf("-")!==-1&&data!==undefined){data_user.set(this,key,value);}});},null,value,arguments.length>1,null,true);},removeData:function(key){return this.each(function(){data_user.remove(this,key);});}});var pnum=(/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/).source;var strundefined=typeof undefined;var
2284rkeyEvent=/^key/,rmouseEvent=/^(?:mouse|pointer|contextmenu)|click/,rfocusMorph=/^(?:focusinfocus|focusoutblur)$/,rtypenamespace=/^([^.]*)(?:\.(.+)|)$/;function returnTrue(){return true;}
2285function returnFalse(){return false;}
2286function safeActiveElement(){try{return document.activeElement;}catch(err){}}
2287jQuery.event={global:{},add:function(elem,types,handler,data,selector){var handleObjIn,eventHandle,tmp,events,t,handleObj,special,handlers,type,namespaces,origType,elemData=data_priv.get(elem);if(!elemData){return;}
2288if(handler.handler){handleObjIn=handler;handler=handleObjIn.handler;selector=handleObjIn.selector;}
2289if(!handler.guid){handler.guid=jQuery.guid++;}
2290if(!(events=elemData.events)){events=elemData.events={};}
2291if(!(eventHandle=elemData.handle)){eventHandle=elemData.handle=function(e){return typeof jQuery!==strundefined&&jQuery.event.triggered!==e.type?jQuery.event.dispatch.apply(elem,arguments):undefined;};}
2292types=(types||"").match(rnotwhite)||[""];t=types.length;while(t--){tmp=rtypenamespace.exec(types[t])||[];type=origType=tmp[1];namespaces=(tmp[2]||"").split(".").sort();if(!type){continue;}
2293special=jQuery.event.special[type]||{};type=(selector?special.delegateType:special.bindType)||type;special=jQuery.event.special[type]||{};handleObj=jQuery.extend({type:type,origType:origType,data:data,handler:handler,guid:handler.guid,selector:selector,needsContext:selector&&jQuery.expr.match.needsContext.test(selector),namespace:namespaces.join(".")},handleObjIn);if(!(handlers=events[type])){handlers=events[type]=[];handlers.delegateCount=0;if(!special.setup||special.setup.call(elem,data,namespaces,eventHandle)===false){if(elem.addEventListener){elem.addEventListener(type,eventHandle,false);}}}
2294if(special.add){special.add.call(elem,handleObj);if(!handleObj.handler.guid){handleObj.handler.guid=handler.guid;}}
vendor: 5,595 bytes, lines 2294-2322
2294
2295if(selector){handlers.splice(handlers.delegateCount++,0,handleObj);}else{handlers.push(handleObj);}
2296jQuery.event.global[type]=true;}},remove:function(elem,types,handler,selector,mappedTypes){var j,origCount,tmp,events,t,handleObj,special,handlers,type,namespaces,origType,elemData=data_priv.hasData(elem)&&data_priv.get(elem);if(!elemData||!(events=elemData.events)){return;}
2297types=(types||"").match(rnotwhite)||[""];t=types.length;while(t--){tmp=rtypenamespace.exec(types[t])||[];type=origType=tmp[1];namespaces=(tmp[2]||"").split(".").sort();if(!type){for(type in events){jQuery.event.remove(elem,type+types[t],handler,selector,true);}
2298continue;}
2299special=jQuery.event.special[type]||{};type=(selector?special.delegateType:special.bindType)||type;handlers=events[type]||[];tmp=tmp[2]&&new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.|)")+"(\\.|$)");origCount=j=handlers.length;while(j--){handleObj=handlers[j];if((mappedTypes||origType===handleObj.origType)&&(!handler||handler.guid===handleObj.guid)&&(!tmp||tmp.test(handleObj.namespace))&&(!selector||selector===handleObj.selector||selector==="**"&&handleObj.selector)){handlers.splice(j,1);if(handleObj.selector){handlers.delegateCount--;}
2300if(special.remove){special.remove.call(elem,handleObj);}}}
2301if(origCount&&!handlers.length){if(!special.teardown||special.teardown.call(elem,namespaces,elemData.handle)===false){jQuery.removeEvent(elem,type,elemData.handle);}
2302delete events[type];}}
2303if(jQuery.isEmptyObject(events)){delete elemData.handle;data_priv.remove(elem,"events");}},trigger:function(event,data,elem,onlyHandlers){var i,cur,tmp,bubbleType,ontype,handle,special,eventPath=[elem||document],type=hasOwn.call(event,"type")?event.type:event,namespaces=hasOwn.call(event,"namespace")?event.namespace.split("."):[];cur=tmp=elem=elem||document;if(elem.nodeType===3||elem.nodeType===8){return;}
2304if(rfocusMorph.test(type+jQuery.event.triggered)){return;}
2305if(type.indexOf(".")>=0){namespaces=type.split(".");type=namespaces.shift();namespaces.sort();}
2306ontype=type.indexOf(":")<0&&"on"+type;event=event[jQuery.expando]?event:new jQuery.Event(type,typeof event==="object"&&event);event.isTrigger=onlyHandlers?2:3;event.namespace=namespaces.join(".");event.namespace_re=event.namespace?new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.|)")+"(\\.|$)"):null;event.result=undefined;if(!event.target){event.target=elem;}
2307data=data==null?[event]:jQuery.makeArray(data,[event]);special=jQuery.event.special[type]||{};if(!onlyHandlers&&special.trigger&&special.trigger.apply(elem,data)===false){return;}
2308if(!onlyHandlers&&!special.noBubble&&!jQuery.isWindow(elem)){bubbleType=special.delegateType||type;if(!rfocusMorph.test(bubbleType+type)){cur=cur.parentNode;}
2309for(;cur;cur=cur.parentNode){eventPath.push(cur);tmp=cur;}
2310if(tmp===(elem.ownerDocument||document)){eventPath.push(tmp.defaultView||tmp.parentWindow||window);}}
2311i=0;while((cur=eventPath[i++])&&!event.isPropagationStopped()){event.type=i>1?bubbleType:special.bindType||type;handle=(data_priv.get(cur,"events")||{})[event.type]&&data_priv.get(cur,"handle");if(handle){handle.apply(cur,data);}
2312handle=ontype&&cur[ontype];if(handle&&handle.apply&&jQuery.acceptData(cur)){event.result=handle.apply(cur,data);if(event.result===false){event.preventDefault();}}}
2313event.type=type;if(!onlyHandlers&&!event.isDefaultPrevented()){if((!special._default||special._default.apply(eventPath.pop(),data)===false)&&jQuery.acceptData(elem)){if(ontype&&jQuery.isFunction(elem[type])&&!jQuery.isWindow(elem)){tmp=elem[ontype];if(tmp){elem[ontype]=null;}
2314jQuery.event.triggered=type;elem[type]();jQuery.event.triggered=undefined;if(tmp){elem[ontype]=tmp;}}}}
2315return event.result;},dispatch:function(event){event=jQuery.event.fix(event);var i,j,ret,matched,handleObj,handlerQueue=[],args=slice.call(arguments),handlers=(data_priv.get(this,"events")||{})[event.type]||[],special=jQuery.event.special[event.type]||{};args[0]=event;event.delegateTarget=this;if(special.preDispatch&&special.preDispatch.call(this,event)===false){return;}
2316handlerQueue=jQuery.event.handlers.call(this,event,handlers);i=0;while((matched=handlerQueue[i++])&&!event.isPropagationStopped()){event.currentTarget=matched.elem;j=0;while((handleObj=matched.handlers[j++])&&!event.isImmediatePropagationStopped()){if(!event.namespace_re||event.namespace_re.test(handleObj.namespace)){event.handleObj=handleObj;event.data=handleObj.data;ret=((jQuery.event.special[handleObj.origType]||{}).handle||handleObj.handler).apply(matched.elem,args);if(ret!==undefined){if((event.result=ret)===false){event.preventDefault();event.stopPropagation();}}}}}
2317if(special.postDispatch){special.postDispatch.call(this,event);}
2318return event.result;},handlers:function(event,handlers){var i,matches,sel,handleObj,handlerQueue=[],delegateCount=handlers.delegateCount,cur=event.target;if(delegateCount&&cur.nodeType&&(!event.button||event.type!=="click")){for(;cur!==this;cur=cur.parentNode||this){if(cur.disabled!==true||event.type!=="click"){matches=[];for(i=0;i<delegateCount;i++){handleObj=handlers[i];sel=handleObj.selector+" ";if(matches[sel]===undefined){matches[sel]=handleObj.needsContext?jQuery(sel,this).index(cur)>=0:jQuery.find(sel,this,null,[cur]).length;}
2319if(matches[sel]){matches.push(handleObj);}}
2320if(matches.length){handlerQueue.push({elem:cur,handlers:matches});}}}}
2321if(delegateCount<handlers.length){handlerQueue.push({elem:this,handlers:handlers.slice(delegateCount)});}
2322return handlerQueue;},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{}
2322,keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(event,original){if(event.which==null){event.which=original.charCode!=null?original.charCode:original.keyCode;}
2323return event;}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(event,original){var eventDoc,doc,body,button=original.button;if(event.pageX==null&&original.clientX!=null){eventDoc=event.target.ownerDocument||document;doc=eventDoc.documentElement;body=eventDoc.body;event.pageX=original.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc&&doc.clientLeft||body&&body.clientLeft||0);event.pageY=original.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc&&doc.clientTop||body&&body.clientTop||0);}
2324if(!event.which&&button!==undefined){event.which=(button&1?1:(button&2?3:(button&4?2:0)));}
2325return event;}},fix:function(event){if(event[jQuery.expando]){return event;}
2326var i,prop,copy,type=event.type,originalEvent=event,fixHook=this.fixHooks[type];if(!fixHook){this.fixHooks[type]=fixHook=rmouseEvent.test(type)?this.mouseHooks:rkeyEvent.test(type)?this.keyHooks:{};}
2327copy=fixHook.props?this.props.concat(fixHook.props):this.props;event=new jQuery.Event(originalEvent);i=copy.length;while(i--){prop=copy[i];event[prop]=originalEvent[prop];}
2328if(!event.target){event.target=document;}
2329if(event.target.nodeType===3){event.target=event.target.parentNode;}
2330return fixHook.filter?fixHook.filter(event,originalEvent):event;},special:{load:{noBubble:true},focus:{trigger:function(){if(this!==safeActiveElement()&&this.focus){this.focus();return false;}},delegateType:"focusin"},blur:{trigger:function(){if(this===safeActiveElement()&&this.blur){this.blur();return false;}},delegateType:"focusout"},click:{trigger:function(){if(this.type==="checkbox"&&this.click&&jQuery.nodeName(this,"input")){this.click();return false;}},_default:function(event){return jQuery.nodeName(event.target,"a");}},beforeunload:{postDispatch:function(event){if(event.result!==undefined&&event.originalEvent){event.originalEvent.returnValue=event.result;}}}},simulate:function(type,elem,event,bubble){var e=jQuery.extend(new jQuery.Event(),event,{type:type,isSimulated:true,originalEvent:{}});if(bubble){jQuery.event.trigger(e,null,elem);}else{jQuery.event.dispatch.call(elem,e);}
2331if(e.isDefaultPrevented()){event.preventDefault();}}};jQuery.removeEvent=function(elem,type,handle){if(elem.removeEventListener){elem.removeEventListener(type,handle,false);}};jQuery.Event=function(src,props){if(!(this instanceof jQuery.Event)){return new jQuery.Event(src,props);}
2332if(src&&src.type){this.originalEvent=src;this.type=src.type;this.isDefaultPrevented=src.defaultPrevented||src.defaultPrevented===undefined&&src.returnValue===false?returnTrue:returnFalse;}else{this.type=src;}
2333if(props){jQuery.extend(this,props);}
2334this.timeStamp=src&&src.timeStamp||jQuery.now();this[jQuery.expando]=true;};jQuery.Event.prototype={isDefaultPrevented:returnFalse,isPropagationStopped:returnFalse,isImmediatePropagationStopped:returnFalse,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=returnTrue;if(e&&e.preventDefault){e.preventDefault();}},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=returnTrue;if(e&&e.stopPropagation){e.stopPropagation();}},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=returnTrue;if(e&&e.stopImmediatePropagation){e.stopImmediatePropagation();}
2335this.stopPropagation();}};
2335jQuery.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(orig,fix){jQuery.event.special[orig]={delegateType:fix,bindType:fix,handle:function(event){var ret,target=this,related=event.relatedTarget,handleObj=event.handleObj;if(!related||(related!==target&&!jQuery.contains(target,related))){event.type=handleObj.origType;ret=handleObj.handler.apply(this,arguments);event.type=fix;}
2336return ret;}};});if(!support.focusinBubbles){jQuery.each({focus:"focusin",blur:"focusout"},function(orig,fix){var handler=function(event){jQuery.event.simulate(fix,event.target,jQuery.event.fix(event),true);};jQuery.event.special[fix]={setup:function(){var doc=this.ownerDocument||this,attaches=data_priv.access(doc,fix);if(!attaches){doc.addEventListener(orig,handler,true);}
2337data_priv.access(doc,fix,(attaches||0)+1);},teardown:function(){var doc=this.ownerDocument||this,attaches=data_priv.access(doc,fix)-1;if(!attaches){doc.removeEventListener(orig,handler,true);data_priv.remove(doc,fix);}else{data_priv.access(doc,fix,attaches);}}};});}
2338jQuery.fn.extend({on:function(types,selector,data,fn,one){var origFn,type;if(typeof types==="object"){if(typeof selector!=="string"){data=data||selector;selector=undefined;}
2339for(type in types){this.on(type,selector,data,types[type],one);}
2340return this;}
2341if(data==null&&fn==null){fn=selector;data=selector=undefined;}else if(fn==null){if(typeof selector==="string"){fn=data;data=undefined;}else{fn=data;data=selector;selector=undefined;}}
2342if(fn===false){fn=returnFalse;}else if(!fn){return this;}
2343if(one===1){origFn=fn;fn=function(event){jQuery().off(event);return origFn.apply(this,arguments);};fn.guid=origFn.guid||(origFn.guid=jQuery.guid++);}
2344return this.each(function(){jQuery.event.add(this,types,fn,data,selector);});},one:function(types,selector,data,fn){return this.on(types,selector,data,fn,1);},off:function(types,selector,fn){var handleObj,type;if(types&&types.preventDefault&&types.handleObj){handleObj=types.handleObj;jQuery(types.delegateTarget).off(handleObj.namespace?handleObj.origType+"."+handleObj.namespace:handleObj.origType,handleObj.selector,handleObj.handler);return this;}
2345if(typeof types==="object"){for(type in types){this.off(type,selector,types[type]);}
2346return this;}
2347if(selector===false||typeof selector==="function"){fn=selector;selector=undefined;}
2348if(fn===false){fn=returnFalse;}
2349return this.each(function(){jQuery.event.remove(this,types,fn,selector);});},trigger:function(type,data){return this.each(function(){jQuery.event.trigger(type,data,this);});},triggerHandler:function(type,data){var elem=this[0];if(elem){return jQuery.event.trigger(type,data,elem,true);}}});var nonce=jQuery.now();var rquery=(/\?/);jQuery.parseJSON=function(data){return JSON.parse(data+"");};jQuery.parseXML=function(data){var xml,tmp;if(!data||typeof data!=="string"){return null;}
2350try{tmp=new DOMParser();xml=tmp.parseFromString(data,"text/xml");}catch(e){xml=undefined;}
2351if(!xml||xml.getElementsByTagName("parsererror").length){jQuery.error("Invalid XML: "+data);}
2352return xml;};var
2353ajaxLocParts,ajaxLocation,rhash=/#.*$/,rts=/([?&])_=[^&]*/,rheaders=/^(.*?):[ \t]*([^\r\n]*)$/mg,rlocalProtocol=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,rnoContent=/^(?:GET|HEAD)$/,rprotocol=/^\/\//,rurl=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,prefilters={},transports={},allTypes="*/".concat("*");try{ajaxLocation=location.href;}catch(e){ajaxLocation=document.createElement("a");ajaxLocation.href="";ajaxLocation=ajaxLocation.href;}
2354ajaxLocParts=rurl.exec(ajaxLocation.toLowerCase())||[];function addToPrefiltersOrTransports(structure){return function(dataTypeExpression,func){if(typeof dataTypeExpression!=="str
vendor: 2,273 bytes, lines 2354-2368
2354ing"){func=dataTypeExpression;dataTypeExpression="*";}
2355var dataType,i=0,dataTypes=dataTypeExpression.toLowerCase().match(rnotwhite)||[];if(jQuery.isFunction(func)){while((dataType=dataTypes[i++])){if(dataType[0]==="+"){dataType=dataType.slice(1)||"*";(structure[dataType]=structure[dataType]||[]).unshift(func);}else{(structure[dataType]=structure[dataType]||[]).push(func);}}}};}
2356function inspectPrefiltersOrTransports(structure,options,originalOptions,jqXHR){var inspected={},seekingTransport=(structure===transports);function inspect(dataType){var selected;inspected[dataType]=true;jQuery.each(structure[dataType]||[],function(_,prefilterOrFactory){var dataTypeOrTransport=prefilterOrFactory(options,originalOptions,jqXHR);if(typeof dataTypeOrTransport==="string"&&!seekingTransport&&!inspected[dataTypeOrTransport]){options.dataTypes.unshift(dataTypeOrTransport);inspect(dataTypeOrTransport);return false;}else if(seekingTransport){return!(selected=dataTypeOrTransport);}});return selected;}
2357return inspect(options.dataTypes[0])||!inspected["*"]&&inspect("*");}
2358function ajaxExtend(target,src){var key,deep,flatOptions=jQuery.ajaxSettings.flatOptions||{};for(key in src){if(src[key]!==undefined){(flatOptions[key]?target:(deep||(deep={})))[key]=src[key];}}
2359if(deep){jQuery.extend(true,target,deep);}
2360return target;}
2361function ajaxHandleResponses(s,jqXHR,responses){var ct,type,finalDataType,firstDataType,contents=s.contents,dataTypes=s.dataTypes;while(dataTypes[0]==="*"){dataTypes.shift();if(ct===undefined){ct=s.mimeType||jqXHR.getResponseHeader("Content-Type");}}
2362if(ct){for(type in contents){if(contents[type]&&contents[type].test(ct)){dataTypes.unshift(type);break;}}}
2363if(dataTypes[0]in responses){finalDataType=dataTypes[0];}else{for(type in responses){if(!dataTypes[0]||s.converters[type+" "+dataTypes[0]]){finalDataType=type;break;}
2364if(!firstDataType){firstDataType=type;}}
2365finalDataType=finalDataType||firstDataType;}
2366if(finalDataType){if(finalDataType!==dataTypes[0]){dataTypes.unshift(finalDataType);}
2367return responses[finalDataType];}}
2368function ajaxConvert(s,response,jqXHR,isSuccess){var conv2,current,conv,tmp,prev,converters={},dataTypes=s.dataTypes.slice();if(dataTypes[1]){for(conv in s.converters){converters[conv.toLowerCase()]=s.converters[conv];}}
2369current=dataTypes.shift();while(current){if(s.responseFields[current]){jqXHR[s.responseFields[current]]=response;}
2370if(!prev&&isSuccess&&s.dataFilter){response=s.dataFilter(response,s.dataType);}
2371prev=current;current=dataTypes.shift();if(current){if(current==="*"){current=prev;}else if(prev!=="*"&&prev!==current){conv=converters[prev+" "+current]||converters["* "+current];if(!conv){for(conv2 in converters){tmp=conv2.split(" ");if(tmp[1]===current){conv=converters[prev+" "+tmp[0]]||converters["* "+tmp[0]];if(conv){if(conv===true){conv=converters[conv2];}else if(converters[conv2]!==true){current=tmp[0];dataTypes.unshift(tmp[1]);}
2372break;}}}}
2373if(conv!==true){if(conv&&s["throws"]){response=conv(response);}else{try{response=conv(response);}catch(e){return{state:"parsererror",error:conv?e:"No conversion from "+prev+" to "+current};}}}}}}
2374return{state:"success",data:response};}
2375jQuery.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ajaxLocation,type:"GET",isLocal:rlocalProtocol.test(ajaxLocParts[1]),global:true,processData:true,async:true,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":allTypes,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":true,"text json":jQuery.parseJSON,"text xml":jQuery.parseXML},flatOptions:{url:true,context:true}},ajaxSetup:function(target,settings){return settings?ajaxExtend(ajaxExtend(target,jQuery.ajaxSettings),settings):ajaxExtend(jQuery.ajaxSettings,target);},ajaxPrefilter:addToPrefiltersOrTransports(prefilters),ajaxTransport:addToPrefiltersOrTransports(transports),ajax:function(url,options){if(typeof url==="object"){options=url;url=undefined;}
2376options=options||{};var transport,cacheURL,responseHeadersString,responseHeaders,timeoutTimer,parts,fireGlobals,i,s=jQuery.ajaxSetup({},options),callbackContext=s.context||s,globalEventContext=s.context&&(callbackContext.nodeType||callbackContext.jquery)?jQuery(callbackContext):jQuery.event,deferred=jQuery.Deferred(),completeDeferred=jQuery.Callbacks("once memory"),statusCode=s.statusCode||{},requestHeaders={},requestHeadersNames={},state=0,strAbort="canceled",jqXHR={readyState:0,getResponseHeader:function(key){var match;if(state===2){if(!responseHeaders){responseHeaders={};while((match=rheaders.exec(responseHeadersString))){responseHeaders[match[1].toLowerCase()]=match[2];}}
2377match=responseHeaders[key.toLowerCase()];}
2378return match==null?null:match;},getAllResponseHeaders:function(){return state===2?responseHeadersString:null;},setRequestHeader:function(name,value){var lname=name.toLowerCase();if(!state){name=requestHeadersNames[lname]=requestHeadersNames[lname]||name;requestHeaders[name]=value;}
2379return this;},overrideMimeType:function(type){if(!state){s.mimeType=type;}
2380return this;},statusCode:function(map){var code;if(map){if(state<2){for(code in map){statusCode[code]=[statusCode[code],map[code]];}}else{jqXHR.always(map[jqXHR.status]);}}
2381return this;},abort:function(statusText){var finalText=statusText||strAbort;if(transport){transport.abort(finalText);}
2382done(0,finalText);return this;}};deferred.promise(jqXHR).complete=completeDeferred.add;jqXHR.success=jqXHR.done;jqXHR.error=jqXHR.fail;s.url=((url||s.url||ajaxLocation)+"").replace(rhash,"").replace(rprotocol,ajaxLocParts[1]+"//");s.type=options.method||options.type||s.method||s.type;s.dataTypes=jQuery.trim(s.dataType||"*").toLowerCase().match(rnotwhite)||[""];if(s.crossDomain==null){parts=rurl.exec(s.url.toLowerCase());s.crossDomain=!!(parts&&(parts[1]!==ajaxLocParts[1]||parts[2]!==ajaxLocParts[2]||(parts[3]||(parts[1]==="http:"?"80":"443"))!==(ajaxLocParts[3]||(ajaxLocParts[1]==="http:"?"80":"443"))));}
2383if(s.data&&s.processData&&typeof s.data!=="string"){s.data=jQuery.param(s.data,s.traditional);}
2384inspectPrefiltersOrTransports(prefilters,s,options,jqXHR);if(state===2){return jqXHR;}
2385fireGlobals=s.global;if(fireGlobals&&jQuery.active++===0){jQuery.event.trigger("ajaxStart");}
2386s.type=s.type.toUpperCase();s.hasContent=!rnoContent.test(s.type);cacheURL=s.url;if(!s.hasContent){if(s.data){cacheURL=(s.url+=(rquery.test(cacheURL)?"&":"?")+s.data);delete s.data;}
2387if(s.cache===false){s.url=rts.test(cacheURL)?cacheURL.replace(rts,"$1_="+nonce++):cacheURL+(rquery.test(cacheURL)?"&":"?")+"_="+nonce++;}}
2388if(s.ifModified){if(jQuery.lastModified[cacheURL]){jqXHR.setRequestHeader("If-Modified-Since",jQuery.lastModified[cacheURL]);}
2389if(jQuery.etag[cacheURL]){jqXHR.setRequestHeader("If-None-Match",jQuery.etag[cacheURL]);}}
2390if(s.data&&s.hasContent&&s.contentType!==false||options.contentType){jqXHR.setRequestHeader("Content-Type",s.contentType);}
2391jqXHR.setRequestHeader("Accept",s.dataTypes[0]&&s.accepts[s.dataTypes[0]]?s.accepts[s.dataTypes[0]]+(s.dataTypes[0]!=="*"?", "+allTypes+"; q=0.01":""):s.accepts["*"]);for(i in s.headers){jqXHR.setRequestHeader(i,s.headers[i]);}
vendor: 4,037 bytes, lines 2392-2410
2392if(s.beforeSend&&(s.beforeSend.call(callbackContext,jqXHR,s)===false||state===2)){return jqXHR.abort();}
2393strAbort="abort";for(i in{success:1,error:1,complete:1}){jqXHR[i](s[i]);}
2394transport=inspectPrefiltersOrTransports(transports,s,options,jqXHR);if(!transport){done(-1,"No Transport");}else{jqXHR.readyState=1;if(fireGlobals){globalEventContext.trigger("ajaxSend",[jqXHR,s]);}
2395if(s.async&&s.timeout>0){timeoutTimer=setTimeout(function(){jqXHR.abort("timeout");},s.timeout);}
2396try{state=1;transport.send(requestHeaders,done);}catch(e){if(state<2){done(-1,e);}else{throw e;}}}
2397function done(status,nativeStatusText,responses,headers){var isSuccess,success,error,response,modified,statusText=nativeStatusText;if(state===2){return;}
2398state=2;if(timeoutTimer){clearTimeout(timeoutTimer);}
2399transport=undefined;responseHeadersString=headers||"";jqXHR.readyState=status>0?4:0;isSuccess=status>=200&&status<300||status===304;if(responses){response=ajaxHandleResponses(s,jqXHR,responses);}
2400response=ajaxConvert(s,response,jqXHR,isSuccess);if(isSuccess){if(s.ifModified){modified=jqXHR.getResponseHeader("Last-Modified");if(modified){jQuery.lastModified[cacheURL]=modified;}
2401modified=jqXHR.getResponseHeader("etag");if(modified){jQuery.etag[cacheURL]=modified;}}
2402if(status===204||s.type==="HEAD"){statusText="nocontent";}else if(status===304){statusText="notmodified";}else{statusText=response.state;success=response.data;error=response.error;isSuccess=!error;}}else{error=statusText;if(status||!statusText){statusText="error";if(status<0){status=0;}}}
2403jqXHR.status=status;jqXHR.statusText=(nativeStatusText||statusText)+"";if(isSuccess){deferred.resolveWith(callbackContext,[success,statusText,jqXHR]);}else{deferred.rejectWith(callbackContext,[jqXHR,statusText,error]);}
2404jqXHR.statusCode(statusCode);statusCode=undefined;if(fireGlobals){globalEventContext.trigger(isSuccess?"ajaxSuccess":"ajaxError",[jqXHR,s,isSuccess?success:error]);}
2405completeDeferred.fireWith(callbackContext,[jqXHR,statusText]);if(fireGlobals){globalEventContext.trigger("ajaxComplete",[jqXHR,s]);if(!(--jQuery.active)){jQuery.event.trigger("ajaxStop");}}}
2406return jqXHR;},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,"json");},getScript:function(url,callback){return jQuery.get(url,undefined,callback,"script");}});jQuery.each(["get","post"],function(i,method){jQuery[method]=function(url,data,callback,type){if(jQuery.isFunction(data)){type=type||callback;callback=data;data=undefined;}
2407return jQuery.ajax({url:url,type:method,dataType:type,data:data,success:callback});};});jQuery.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(i,type){jQuery.fn[type]=function(fn){return this.on(type,fn);};});var r20=/%20/g,rbracket=/\[\]$/,rCRLF=/\r?\n/g,rsubmitterTypes=/^(?:submit|button|image|reset|file)$/i,rsubmittable=/^(?:input|select|textarea|keygen)/i;function buildParams(prefix,obj,traditional,add){var name;if(jQuery.isArray(obj)){jQuery.each(obj,function(i,v){if(traditional||rbracket.test(prefix)){add(prefix,v);}else{buildParams(prefix+"["+(typeof v==="object"?i:"")+"]",v,traditional,add);}});}else if(!traditional&&jQuery.type(obj)==="object"){for(name in obj){buildParams(prefix+"["+name+"]",obj[name],traditional,add);}}else{add(prefix,obj);}}
2408jQuery.param=function(a,traditional){var prefix,s=[],add=function(key,value){value=jQuery.isFunction(value)?value():(value==null?"":value);s[s.length]=encodeURIComponent(key)+"="+encodeURIComponent(value);};if(traditional===undefined){traditional=jQuery.ajaxSettings&&jQuery.ajaxSettings.traditional;}
2409if(jQuery.isArray(a)||(a.jquery&&!jQuery.isPlainObject(a))){jQuery.each(a,function(){add(this.name,this.value);});}else{for(prefix in a){buildParams(prefix,a[prefix],traditional,add);}}
2410return s.join("&").replace(r20,"+");};jQuery.fn.extend({serialize:function(){return jQuery.param(this.serializeArray());},serializeArray:function(){return this.map(function(){var elements=jQuery.prop(this,"elements");return elements?jQuery.makeArray(elements):this;}
2410).filter(function(){var type=this.type;return this.name&&!jQuery(this).is(":disabled")&&rsubmittable.test(this.nodeName)&&!rsubmitterTypes.test(type)&&(this.checked||!rcheckableType.test(type));}).map(function(i,elem){var val=jQuery(this).val();return val==null?null:jQuery.isArray(val)?jQuery.map(val,function(val){return{name:elem.name,value:val.replace(rCRLF,"\r\n")};}):{name:elem.name,value:val.replace(rCRLF,"\r\n")};}).get();}});jQuery.ajaxSettings.xhr=function(){try{return new XMLHttpRequest();}catch(e){}};var xhrId=0,xhrCallbacks={},xhrSuccessStatus={0:200,1223:204},xhrSupported=jQuery.ajaxSettings.xhr();if(window.ActiveXObject){jQuery(window).on("unload",function(){for(var key in xhrCallbacks){xhrCallbacks[key]();}});}
2411support.cors=!!xhrSupported&&("withCredentials"in xhrSupported);support.ajax=xhrSupported=!!xhrSupported;jQuery.ajaxTransport(function(options){var callback;if(support.cors||xhrSupported&&!options.crossDomain){return{send:function(headers,complete){var i,xhr=options.xhr(),id=++xhrId;xhr.open(options.type,options.url,options.async,options.username,options.password);if(options.xhrFields){for(i in options.xhrFields){xhr[i]=options.xhrFields[i];}}
2412if(options.mimeType&&xhr.overrideMimeType){xhr.overrideMimeType(options.mimeType);}
2413if(!options.crossDomain&&!headers["X-Requested-With"]){headers["X-Requested-With"]="XMLHttpRequest";}
2414for(i in headers){xhr.setRequestHeader(i,headers[i]);}
2415callback=function(type){return function(){if(callback){delete xhrCallbacks[id];callback=xhr.onload=xhr.onerror=null;if(type==="abort"){xhr.abort();}else if(type==="error"){complete(xhr.status,xhr.statusText);}else{complete(xhrSuccessStatus[xhr.status]||xhr.status,xhr.statusText,typeof xhr.responseText==="string"?{text:xhr.responseText}:undefined,xhr.getAllResponseHeaders());}}};};xhr.onload=callback();xhr.onerror=callback("error");callback=xhrCallbacks[id]=callback("abort");try{xhr.send(options.hasContent&&options.data||null);}catch(e){if(callback){throw e;}}},abort:function(){if(callback){callback();}}};}});jQuery.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(text){jQuery.globalEval(text);return text;}}});jQuery.ajaxPrefilter("script",function(s){if(s.cache===undefined){s.cache=false;}
2416if(s.crossDomain){s.type="GET";}});jQuery.ajaxTransport("script",function(s){if(s.crossDomain){var script,callback;return{send:function(_,complete){script=jQuery("<script>").prop({async:true,charset:s.scriptCharset,src:s.url}).on("load error",callback=function(evt){script.remove();callback=null;if(evt){complete(evt.type==="error"?404:200,evt.type);}});document.head.appendChild(script[0]);},abort:function(){if(callback){callback();}}};}});var oldCallbacks=[],rjsonp=/(=)\?(?=&|$)|\?\?/;jQuery.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var callback=oldCallbacks.pop()||(jQuery.expando+"_"+(nonce++));this[callback]=true;return callback;}});jQuery.ajaxPrefilter("json jsonp",function(s,originalSettings,jqXHR){var callbackName,overwritten,responseContainer,jsonProp=s.jsonp!==false&&(rjsonp.test(s.url)?"url":typeof s.data==="string"&&!(s.contentType||"").indexOf("application/x-www-form-urlencoded")&&rjsonp.test(s.data)&&"data");if(jsonProp||s.dataTypes[0]==="jsonp"){callbackName=s.jsonpCallback=jQuery.isFunction(s.jsonpCallback)?s.jsonpCallback():s.jsonpCallback;if(jsonProp){s[jsonProp]=s[jsonProp].replace(rjsonp,"$1"+callbackName);}else if(s.jsonp!==false){s.url+=(rquery.test(s.url)?"&":"?")+s.jsonp+"="+callbackName;}
2417s.converters["script json"]=function(){if(!responseContainer){jQuery.error(callbackName+" was not called");}
2418return responseContainer[0];};s.dataTypes[0]="json";overwritten=window[callbackName];window[callbackName]=function(){responseContainer=arguments;};jqXHR.always(function(){window[callbackName]=overwritten;if(s[callbackName]){s.jsonpCallback=originalSettings.jsonpCallback;oldCallbacks.push(callbackName);}
2419if(responseContainer&&jQuery.isFunction(overwritten)){overwritten(responseContainer[0]);}
2420responseContainer=overwritten=undefined;});return"script";}});jQuery.parseHTML=function(data,context,keepScripts){if(!data||typeof data!=="str
2420ing"){return null;}
2421if(typeof context==="boolean"){keepScripts=context;context=false;}
2422context=context||document;var parsed=rsingleTag.exec(data),scripts=!keepScripts&&[];if(parsed){return[context.createElement(parsed[1])];}
2423parsed=jQuery.buildFragment([data],context,scripts);if(scripts&&scripts.length){jQuery(scripts).remove();}
2424return jQuery.merge([],parsed.childNodes);};var _load=jQuery.fn.load;jQuery.fn.load=function(url,params,callback){if(typeof url!=="string"&&_load){return _load.apply(this,arguments);}
2425var selector,type,response,self=this,off=url.indexOf(" ");if(off>=0){selector=jQuery.trim(url.slice(off));url=url.slice(0,off);}
2426if(jQuery.isFunction(params)){callback=params;params=undefined;}else if(params&&typeof params==="object"){type="POST";}
2427if(self.length>0){jQuery.ajax({url:url,type:type,dataType:"html",data:params}).done(function(responseText){response=arguments;self.html(selector?jQuery("<div>").append(jQuery.parseHTML(responseText)).find(selector):responseText);}).complete(callback&&function(jqXHR,status){self.each(callback,response||[jqXHR.responseText,status,jqXHR]);});}
2428return this;};jQuery.noConflict=function(){};return jQuery;return jQuery;}));},{}],12:[function(require,module,exports){"use strict";module.exports=function(document){return{reload:function(){return document.location.reload();},getHash:function(){return document.location.hash;},setHash:function(newHash){return document.location.hash=newHash;},changeHref:function(newLocation){return document.location.href=newLocation;}};};},{}],13:[function(require,module,exports){"use strict";var useCache;useCache=function(callback){var cacheobj;cacheobj=localStorage.getItem('oauthio_cache');if(cacheobj){cacheobj=JSON.parse(cacheobj);}else{cacheobj={};}
2429return callback(cacheobj,function(){return localStorage.setItem('oauthio_cache',JSON.stringify(cacheobj));});};module.exports={init:function(config,document){this.config=config;return this.document=document;},active:function(){return typeof localStorage!=="undefined"&&localStorage!==null;},create:function(name,value,expires){var date;this.erase(name);date=new Date();localStorage.setItem(name,value);useCache(function(cacheobj,cacheupdate){cacheobj[name]=expires?date.getTime()+(expires||1200)*1000:false;return cacheupdate();});},read:function(name){return useCache(function(cacheobj,cacheupdate){if(cacheobj[name]==null){return null;}
2430if(cacheobj[name]===false){return localStorage.getItem(name);}else if((new Date()).getTime()<cacheobj[name]){localStorage.removeItem(name);delete cacheobj[name];cacheupdate();return null;}else{return localStorage.getItem(name);}});},erase:function(name){return useCache(function(cacheobj,cacheupdate){localStorage.removeItem(name);delete cacheobj[name];return cacheupdate();});},eraseFrom:function(prefix){useCache(function(cacheobj,cacheupdate){var cachenames,i,len,name;cachenames=Object.keys(cacheobj);for(i=0,len=cachenames.length;i<len;i++){name=cachenames[i];if(name.substr(0,prefix.length)===prefix){localStorage.removeItem(name);delete cacheobj[name];}}
2431return cacheupdate();});}};},{}],14:[function(require,module,exports){var b64pad,hexcase;hexcase=0;b64pad="";module.exports={hex_sha1:function(s){return this.rstr2hex(this.rstr_sha1(this.str2rstr_utf8(s)));},b64_sha1:function(s){return this.rstr2b64(this.rstr_sha1(this.str2rstr_utf8(s)));},any_sha1:function(s,e){return this.rstr2any(this.rstr_sha1(this.str2rstr_utf8(s)),e);},hex_hmac_sha1:function(k,d){return this.rstr2hex(this.rstr_hmac_sha1(this.str2rstr_utf8(k),this.str2rstr_utf8(d)));},b64_hmac_sha1:function(k,d){return this.rstr2b64(this.rstr_hmac_sha1(this.str2rstr_utf8(k),this.str2rstr_utf8(d)));},any_hmac_sha1:function(k,d,e){return this.rstr2any(this.rstr_hmac_sha1(this.str2rstr_utf8(k),this.str2rstr_utf8(d)),e);},sha1_vm_test:function(){return thishex_sha1("abc").toLowerCase()==="a9993e364706816aba3e25717850c26c9cd0d89d";},rstr_sha1:function(s){return this.binb2rstr(this.binb_sha1(this.rstr2binb(s),s.length*8));},rstr_hmac_sha1:function(key,data){var bkey,hash,i,ipad,opad;bkey=this.rstr2binb(key);if(bkey.length>16){bkey=this.binb_sha1(bkey,key.length*8);}
2432ipad=Array(16);opad=Array(16);i=0;
2432while(i<16){ipad[i]=bkey[i]^0x36363636;opad[i]=bkey[i]^0x5C5C5C5C;i++;}
2433hash=this.binb_sha1(ipad.concat(this.rstr2binb(data)),512+data.length*8);return this.binb2rstr(this.binb_sha1(opad.concat(hash),512+160));},rstr2hex:function(input){var e,hex_tab,i,output,x;try{hexcase;}catch(_error){e=_error;hexcase=0;}
2434hex_tab=(hexcase?"0123456789ABCDEF":"0123456789abcdef");output="";x=void 0;i=0;while(i<input.length){x=input.charCodeAt(i);output+=hex_tab.charAt((x>>>4)&0x0F)+hex_tab.charAt(x&0x0F);i++;}
2435return output;},rstr2b64:function(input){var e,i,j,len,output,tab,triplet;try{b64pad;}catch(_error){e=_error;b64pad="";}
2436tab="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";output="";len=input.length;i=0;while(i<len){triplet=(input.charCodeAt(i)<<16)|(i+1<len?input.charCodeAt(i+1)<<8:0)|(i+2<len?input.charCodeAt(i+2):0);j=0;while(j<4){if(i*8+j*6>input.length*8){output+=b64pad;}else{output+=tab.charAt((triplet>>>6*(3-j))&0x3F);}
2437j++;}
2438i+=3;}
2439return output;},rstr2any:function(input,encoding){var dividend,divisor,full_length,i,output,q,quotient,remainders,x;divisor=encoding.length;remainders=Array();i=void 0;q=void 0;x=void 0;quotient=void 0;dividend=Array(Math.ceil(input.length/2));i=0;while(i<dividend.length){dividend[i]=(input.charCodeAt(i*2)<<8)|input.charCodeAt(i*2+1);i++;}
2440while(dividend.length>0){quotient=Array();x=0;
2440i=0;while(i<dividend.length){x=(x<<16)+dividend[i];q=Math.floor(x/divisor);x-=q*divisor;if(quotient.length>0||q>0){quotient[quotient.length]=q;}
2441i++;}
2442remainders[remainders.length]=x;dividend=quotient;}
2443output="";i=remainders.length-1;while(i>=0){output+=encoding.charAt(remainders[i]);i--;}
2444full_length=Math.ceil(input.length*8/(Math.log(encoding.length)/Math.log(2)));i=output.length;while(i<full_length){output=encoding[0]+output;i++;}
2445return output;},str2rstr_utf8:function(input){var i,output,x,y;output="";i=-1;x=void 0;y=void 0;while(++i<input.length){x=input.charCodeAt(i);y=(i+1<input.length?input.charCodeAt(i+1):0);if(0xD800<=x&&x<=0xDBFF&&0xDC00<=y&&y<=0xDFFF){x=0x10000+((x&0x03FF)<<10)+(y&0x03FF);i++;}
2446if(x<=0x7F){output+=String.fromCharCode(x);}else if(x<=0x7FF){output+=String.fromCharCode(0xC0|((x>>>6)&0x1F),0x80|(x&0x3F));}else if(x<=0xFFFF){output+=String.fromCharCode(0xE0|((x>>>12)&0x0F),0x80|((x>>>6)&0x3F),0x80|(x&0x3F));}else{if(x<=0x1FFFFF){output+=String.fromCharCode(0xF0|((x>>>18)&0x07),0x80|((x>>>12)&0x3F),0x80|((x>>>6)&0x3F),0x80|(x&0x3F));}}}
2447return output;},str2rstr_utf16le:function(input){var i,output;output="";i=0;while(i<input.length){output+=String.fromCharCode(input.charCodeAt(i)&0xFF,(input.charCodeAt(i)>>>8)&0xFF);i++;}
2448return output;},str2rstr_utf16be:function(input){var i,output;output="";i=0;while(i<input.length){output+=String.fromCharCode((input.charCodeAt(i)>>>8)&0xFF,input.charCodeAt(i)&0xFF);i++;}
2449return output;},rstr2binb:function(input){var i,output;output=Array(input.length>>2);i=0;while(i<output.length){output[i]=0;i++;}
2450i=0;while(i<input.length*8){output[i>>5]|=(input.charCodeAt(i/8)&0xFF)<<(24-i%32);i+=8;}
2451return output;},binb2rstr:function(input){var i,output;output="";i=0;while(i<input.length*32){output+=String.fromCharCode((input[i>>5]>>>(24-i%32))&0xFF);i+=8;}
2452return output;},binb_sha1:function(x,len){var a,b,c,d,e,i,j,olda,oldb,oldc,oldd,olde,t,w;x[len>>5]|=0x80<<(24-len%32);x[((len+64>>9)<<4)+15]=len;w=Array(80);a=1732584193;b=-271733879;c=-1732584194;d=271733878;e=-1009589776;i=0;while(i<x.length){olda=a;oldb=b;oldc=c;oldd=d;olde=e;j=0;while(j<80){if(j<16){w[j]=x[i+j];}else{w[j]=this.bit_rol(w[j-3]^w[j-8]^w[j-14]^w[j-16],1);}
2453t=this.safe_add(this.safe_add(this.bit_rol(a,5),this.sha1_ft(j,b,c,d)),this.safe_add(this.safe_add(e,w[j]),this.sha1_kt(j)));e=d;d=c;c=this.bit_rol(b,30);b=a;a=t;j++;}
2454a=this.safe_add(a,olda);b=this.safe_add(b,oldb);c=this.safe_add(c,oldc);d=this.safe_add(d,oldd);e=this.safe_add(e,olde);i+=16;}
2455return Array(a,b,c,d,e);},sha1_ft:function(t,b,c,d){if(t<20){return(b&c)|((~b)&d);}
2456if(t<40){return b^c^d;}
2457if(t<60){return(b&c)|(b&d)|(c&d);}
2458return b^c^d;},sha1_kt:function(t){if(t<20){return 1518500249;}else{if(t<40){return 1859775393;}else{if(t<60){return-1894007588;}else{return-899497514;}}}},safe_add:function(x,y){var lsw,msw;lsw=(x&0xFFFF)+(y&0xFFFF);msw=(x>>16)+(y>>16)+(lsw>>16);return(msw<<16)|(lsw&0xFFFF);},bit_rol:function(num,cnt){return(num<<cnt)|(num>>>(32-cnt));},create_hash:function(){var hash;hash=this.b64_sha1((new Date()).getTime()+":"+Math.floor(Math.random()*9999999));return hash.replace(/\+/g,"-").replace(/\//g,"_").replace(/\=+$/,"");}};},{}],15:[function(require,module,exports){module.exports=function(document){return{getAbsUrl:function(url){var base_url;if(url.match(/^.{2,5}:\/\//)){return url;}
2459if(url[0]==="/"){return document.location.protocol+"//"+document.location.host+url;}
2460base_url=document.location.protocol+"//"+document.location.host+document.location.pathname;if(base_url[base_url.length-1]!=="/"&&url[0]!=="#"){return base_url+"/"+url;}
2461return base_url+url;},replaceParam:function(param,rep,rep2){param=param.replace(/\{\{(.*?)\}\}/g,function(m,v){return rep[v]||"";});if(rep2){param=param.replace(/\{(.*?)\}/g,function(m,v){return rep2[v]||"";});}
2462return param;}};};},{}]},{},[8])(8)});;$(document).ready(function(){$.ajaxSetup({cache:true});$.getScript('https://connect.facebook.net/en_US/sdk.js',function(){FB.init({appId:'591306824547870',status:true,xfbml:true,autoLogAppEvents:true,version:'v10.0'});});});window.twttr=(function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],t=window.twttr||{};if(d.getElementById(id))return t;js=d.createElement(s);js.id=id;js.async=true;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);t._e=[];t.ready=function(f){t._e.push(f);};return t;}(document,"script","twitter-wjs"));;function Share(){this.image='';this.count=0;this.sharing_text='';}
2463var SHARE_CAPTURE_SCALE=2;Share.prototype.openPlaceholderPopup=function(name){var width=600,height=600,left=($(window).width()-width)/2,top=($(window).height()-height)/2,opts='toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no'+',width='+width+',height='+height+',top='+top+',left='+left;var newWindow=window.open('',name,opts);if(newWindow){var html='<html><head><title>Preparing Share...</title>';html+='<style>body{font-family:sans-serif;text-align:center;padding-top:50px;background:#f4f4f4;color:#555;}';html+='.loader{border: 5px solid #f3f3f3;border-top: 5px solid #3498db;border-radius: 50%;width: 40px;height: 40px;animation: spin 1s linear infinite;margin: 20px auto;}';html+='@keyframes spin {0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); }}</style>';html+='</head><body>';html+='<h3>Generating your stats image...</h3>';html+='<div class="loader"></div>';html+='<p>Please wait a moment.</p>';html+='</body></html>';newWindow.document.write(html);}
2464return newWindow;};Share.prototype.processShare=function(ev,obj,component,network){var event=window.event||ev;event.preventDefault();if(this.count==0&&component==='details_panel1'){var msg=(typeof editor!=='undefined'&&editor.selectedLanguage&&editor.selectedLanguage.you_should_check_at_least_one_component_for_share)?editor.selectedLanguage.you_should_check_at_least_one_component_for_share:"You should check at least one component for share.";this.showError(msg);return;}
2465var popupWindow=null;if(network!=='email'){popupWindow=this.openPlaceholderPopup(network+"_share");}
2466var auto_scroll_down=$('#'+component).parents('.auto_scroll_down');$(obj).css({'pointer-events':'none','opacity':'0.5'});var processingText=(typeof editor!=='undefined'&&editor.selectedLanguage&&editor.selectedLanguage.share_is_processing)?editor.selectedLanguage.share_is_processing:"Share is processing";$(".success_for_facebook_share").html('<h3 style="color: #31b0d5; text-align: center"><span class="glyphicon glyphicon-refresh glyphicon-spin" style="margin-left: 0"></span><span style="margin-left: 10px">'+processingText+'</span></h3>').show();if(auto_scroll_down.length>0){auto_scroll_down.scrollTop(auto_scroll_down[0].scrollHeight);}
2467var text="";if(component=='details_panel1')text=$('#text_for_details_sharing').val();else if(component=='kwd-density1')text=$('#text_for_keyword_density_sharing').val();else text=$('#sharing_text').val();var self=this;var target=document.getElementById(component);html2canvas(target,{scale:SHARE_CAPTURE_SCALE,useCORS:true,backgroundColor:null}).then(function(canvas){var image_base64=canvas.toDataURL("image/png");$.ajax({type:"POST",url:"site/save-image",data:{img_url:image_base64},success:function(response){if(response.success){var baseUrl=abs_path;if(baseUrl.slice(-1)!=='/')baseUrl+='/';var landingPage=baseUrl+'site/share-result?img='+response.filename;var shareUrl="";if(network==='facebook'){shareUrl='https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent(landingPage);}else if(network==='twitter'){shareUrl='https://twitter.com/intent/tweet?text='+encodeURIComponent(text)+'&url='+encodeURIComponent(landingPage);}else if(network==='linkedin'){shareUrl='https://www.linkedin.com/sharing/share-offsite/?url='+encodeURIComponent(landingPage);}else if(network==='reddit'){shareUrl='https://www.reddit.com/submit?url='+encodeURIComponent(landingPage)+'&title='+encodeURIComponent(text);}else if(network==='email'){shareUrl='mailto:?subject=My Writing Stats&body='+encodeURIComponent(text+"\n\nCheck it out here: "+landingPage);}
2468if(network==='email'){window.location.href=shareUrl;$(".success_for_facebook_share").hide();}else{if(popupWindow){popupWindow.location.href=shareUrl;}else{window.open(shareUrl,network+"_share");}
2469var interval=setInterval(function(){try{if(popupWindow==null||popupWindow.closed){clearInterval(interval);$(".success_for_facebook_share").hide();}}catch(e){}},1000);}}else{if(popupWindow)popupWindow.close();self.showError(response.error||'Unknown Error');}
2470$(obj).css({'pointer-events':'fill','opacity':'1'});},error:function(){if(popupWindow)popupWindow.close();self.showError("Server connection failed.");$(obj).css({'pointer-events':'fill','opacity':'1'});}});}).catch(function(err){console.error("html2canvas error: ",err);
2470if(popupWindow)popupWindow.close();self.showError("Image generation failed.");$(obj).css({'pointer-events':'fill','opacity':'1'});});};Share.prototype.showError=function(msg){var warningTitle=(typeof editor!=='undefined'&&editor.selectedLanguage&&editor.selectedLanguage.warning)?editor.selectedLanguage.warning:"Warning";$(".success_for_facebook_share").html('<div class="alert alert-warning" style="text-align: left"><a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a> <strong>'+warningTitle+':</strong> '+msg+'</div>').show();};Share.prototype.fbShare=function(ev,obj,component){this.processShare(ev,obj,component,'facebook');};Share.prototype.shareImageToFb=function(ev,obj,component){this.processShare(ev,obj,component,'facebook');};Share.prototype.twitterShare=function(ev,obj,component){this.processShare(ev,obj,component,'twitter');};Share.prototype.linkedinShare=function(ev,obj,component){this.processShare(ev,obj,component,'linkedin');};Share.prototype.redditShare=function(ev,obj,component){this.processShare(ev,obj,component,'reddit');};Share.prototype.emailShare=function(ev,obj,component){this.processShare(ev,obj,component,'email');};Share.prototype.setGoalBadge=function(){$('#goal1').show();$('#speed1').hide();var cookieGoal=editor.optionsObject.buttons['goalViewBox'];var goalTypeText=$("#goalType option[value='"+cookieGoal.type+"']").data('value');var goal_text=goalTypeText?goalTypeText.toLowerCase().replace(' ','_'):'';var goalTextTranslated=(typeof editor!=='undefined'&&editor.selectedLanguage&&editor.selectedLanguage[goal_text])?editor.selectedLanguage[goal_text]:goal_text;var iReachedText=(typeof editor!=='undefined'&&editor.selectedLanguage&&editor.selectedLanguage.i_reached_my_word_count_goal_of)?editor.selectedLanguage.i_reached_my_word_count_goal_of:"I reached my word count goal of";var atText=(typeof editor!=='undefined'&&editor.selectedLanguage&&editor.selectedLanguage.at)?editor.selectedLanguage.at:"at";$('#sharing_text').val(iReachedText+' '+cookieGoal.qty+' '+goalTextTranslated+' '+atText+' '+abs_path+' #wordcount @wordcounter_net');this.updateShareButtons("goal1");};Share.prototype.setSpeedBadge=function(){$('#goal1').hide();$('#speed1').show();var mySpeedText=(typeof editor!=='undefined'&&editor.selectedLanguage&&editor.selectedLanguage.my_writing_speed_is)?editor.selectedLanguage.my_writing_speed_is:"My writing speed is";var wpmText=(typeof editor!=='undefined'&&editor.selectedLanguage&&editor.selectedLanguage.words_per_minute)?editor.selectedLanguage.words_per_minute:"words per minute";var atText=(typeof editor!=='undefined'&&editor.selectedLanguage&&editor.selectedLanguage.at)?editor.selectedLanguage.at:"at";$('#sharing_text').val(mySpeedText+' '+$('#wpm').text()+' '+wpmText+' '+atText+' '+abs_path+' #wordcount @wordcounter_net');this.updateShareButtons("speed1");};Share.prototype.updateShareButtons=function(component){$('#share_to_facebook a').attr('onclick','share.shareImageToFb(event, this, "'+component+'")');$('#share_to_twitter a').attr('onclick','share.twitterShare(event, this, "'+component+'")');$('#share_to_linkedin a').attr('onclick','share.linkedinShare(event, this, "'+component+'")');$('#share_to_reddit a').attr('onclick','share.redditShare(event, this, "'+component+'")');$('#share_to_email a').attr('onclick','share.emailShare(event, this, "'+component+'")');};Share.prototype.countCheckedDetails=function(){this.count=0;$('#share-details-modal .chk_share_component:checked').each(function(index,value){share.count++;});};Share.prototype.checkShareComponent=function(obj){var data=$(obj).data('detail');var data1=data.slice(0,data.length-1);if($(obj).prop('checked')){if(!editor.optionsObject.details[data1]){var savedObject={'details':{}};savedObject.details[data1]=true;editor.changeOption(savedObject);editor.wordCountInternational();}
2471$('#'+data).parent().show();this.count++;}else{$('#'+data).parent().hide();this.count--;}
2472this.createDownloadLink('download-details-panel-link','details_panel1');};Share.prototype.checkShareComponentAtTheBeginning=function(){var data,data1,savedObject={'details':{}};this.count=0;var obj=editor.optionsObject.details;for(var key in obj){$('#share-details-modal .chk_share_component[data-detail="'+key+'1'+'"]').prop('checked',obj[key]);}
2473$('#details_panel1 .list-group-item').hide();$('#share-details-modal .chk_share_component:checked').each(function(index,value){share.count++;data=$(value).data('detail');$('#'+data).parent().show();});editor.wordCountInternational();};Share.prototype.createDownloadLink=function(id,component){var download_link=document.getElementById(id);if($(download_link).find('span').length==0){$(download_link).append('<span class="glyphicon glyphicon-refresh glyphicon-spin" style="margin: 0 0 0 5px"></span>');$(download_link).css({'pointer-events':'none','opacity':'0.7'});}
2474setTimeout(function(){var target=document.getElementById(component);html2canvas(target,{scale:SHARE_CAPTURE_SCALE,useCORS:true,backgroundColor:null}).then(function(canvas){var image_base64=canvas.toDataURL("image/png");download_link.href=image_base64;download_link.download=component+'.png';$(download_link).css({'pointer-events':'fill','opacity':'1'});$(download_link).find('span').remove();}).catch(function(err){console.error("Download Link Error:",err);$(download_link).css({'pointer-events':'fill','opacity':'1'});$(download_link).find('span').remove();});},500);};Share.prototype.createDownloadAsPDFLink=function(obj,ev,component){ev.preventDefault();var download_component;if(!component){if($('#goal1').css('display')!='none'){download_component='goal1';}else{download_component='speed1';}}else{download_component=component;}
2475if($(obj).find('span').length==0){$(obj).append('<span class="glyphicon glyphicon-refresh glyphicon-spin" style="margin: 0 0 0 5px"></span>');$(obj).css({'pointer-events':'none','opacity':'0.7'});}
2476var target=document.getElementById(download_component);html2canvas(target,{scale:SHARE_CAPTURE_SCALE,useCORS:true,backgroundColor:null}).then(function(canvas){var image_base64=canvas.toDataURL("image/png");var doc=new jsPDF('p','mm','a4');var pageWidth=doc.internal.pageSize.getWidth?doc.internal.pageSize.getWidth():doc.internal.pageSize.width;var pageHeight=doc.internal.pageSize.getHeight?doc.internal.pageSize.getHeight():doc.internal.pageSize.height;var margin=5;var availableWidth=pageWidth-margin*2;var availableHeight=pageHeight-margin*2;var originalWidthPx=canvas.width/SHARE_CAPTURE_SCALE;var originalHeightPx=canvas.height/SHARE_CAPTURE_SCALE;var imgWidthMM=originalWidthPx*0.264583;var imgHeightMM=originalHeightPx*0.264583;
2476if(imgWidthMM>availableWidth){var ratio=availableWidth/imgWidthMM;imgWidthMM*=ratio;imgHeightMM*=ratio;}
2477var posX=(pageWidth-imgWidthMM)/2;var posY=20;doc.addImage(image_base64,'PNG',posX,posY,imgWidthMM,imgHeightMM);doc.save(download_component+'.pdf');$(obj).css({'pointer-events':'fill','opacity':'1'});$(obj).find('span').remove();}).catch(function(err){console.error("PDF Error:",err);$(obj).css({'pointer-events':'fill','opacity':'1'});$(obj).find('span').remove();});};Share.prototype.getKeywordDensity=function(){$('#keywords_for_share').empty();$('#kwd-accordion-data a').each(function(index,value){$('#keywords_for_share').append('<li class="list-group-item">'+$(value).find('span.word').text()+'<span class="badge">'+$(value).find('span.badge').text()+'</span>'+'</li>');});};var share=new Share();;
2478/*!
2479 * jQuery Upload File Plugin
2480 * version: 4.0.10
2481 * @requires jQuery v1.5 or later & form plugin
2482 * Copyright (c) 2013 Ravishanker Kusuma
2483 * http://hayageek.com/
2484 */
2485!function(e){void 0==e.fn.ajaxForm&&e.getScript(("https:"==document.location.protocol?"https://":"http://")+"cdnjs.cloudflare.com/ajax/libs/jquery.form/4.2.2/jquery.form.min.js");var a={};a.fileapi=void 0!==e("<input type='file'/>").get(0).files,a.formdata=void 0!==window.FormData,e.fn.uploadFile=function(t){function r(){S||(S=!0,function e(){if(w.sequential||(w.sequentialCount=99999),0==x.length&&0==D.length)w.afterUploadAll&&w.afterUploadAll(C),S=!1;else{if(D.length<w.sequentialCount){var a=x.shift();void 0!=a&&(D.push(a),a.removeClass(C.formGroup),a.submit())}window.setTimeout(e,100)}}())}function o(a,t,r){r.on("dragenter",function(a){a.stopPropagation(),a.preventDefault(),e(this).addClass(t.dragDropHoverClass)}),r.on("dragover",function(a){a.stopPropagation(),a.preventDefault();var r=e(this);r.hasClass(t.dragDropContainerClass)&&!r.hasClass(t.dragDropHoverClass)&&r.addClass(t.dragDropHoverClass)}),r.on("drop",function(r){r.preventDefault(),e(this).removeClass(t.dragDropHoverClass),a.errorLog.html("");var o=r.originalEvent.dataTransfer.files;return!t.multiple&&o.length>1?void(t.showError&&e("<div class='"+t.errorClass+"'>"+t.multiDragErrorStr+"</div>").appendTo(a.errorLog)):void(0!=t.onSelect(o)&&l(t,a,o))}),r.on("dragleave",function(a){e(this).removeClass(t.dragDropHoverClass)}),e(document).on("dragenter",function(e){e.stopPropagation(),e.preventDefault()}),e(document).on("dragover",function(a){a.stopPropagation(),a.preventDefault();var r=e(this);r.hasClass(t.dragDropContainerClass)||r.removeClass(t.dragDropHoverClass)}),e(document).on("drop",function(a){a.stopPropagation(),a.preventDefault(),e(this).removeClass(t.dragDropHoverClass)})}function s(e){var a="",t=e/1024;if(parseInt(t)>1024){var r=t/1024;a=r.toFixed(2)+" MB"}else a=t.toFixed(2)+" KB";return a}function i(a){var t=[];t="string"==jQuery.type(a)?a.split("&"):e.param(a).split("&");var r,o,s=t.length,i=[];for(r=0;s>r;r++)t[r]=t[r].replace(/\+/g," "),o=t[r].split("="),i.push([decodeURIComponent(o[0]),decodeURIComponent(o[1])]);return i}function l(a,t,r){for(var o=0;o<r.length;o++)if(n(t,a,r[o].name))if(a.allowDuplicates||!d(t,r[o].name))if(-1!=a.maxFileSize&&r[o].size>a.maxFileSize)a.showError&&e("<div class='"+a.errorClass+"'><b>"+r[o].name+"</b> "+a.sizeErrorStr+s(a.maxFileSize)+"</div>").appendTo(t.errorLog);else if(-1!=a.maxFileCount&&t.selectedFiles>
2485=a.maxFileCount)a.showError&&e("<div class='"+a.errorClass+"'><b>"+r[o].name+"</b> "+a.maxFileCountErrorStr+a.maxFileCount+"</div>").appendTo(t.errorLog);else{t.selectedFiles++,t.existingFileNames.push(r[o].name);var l=a,p=new FormData,u=a.fileName.replace("[]","");p.append(u,r[o]);var c=a.formData;if(c)for(var h=i(c),f=0;f<h.length;f++)h[f]&&p.append(h[f][0],h[f][1]);l.fileData=p;var w=new m(t,a),g="";g=a.showFileCounter?t.fileCounter+a.fileCounterStyle+r[o].name:r[o].name,a.showFileSize&&(g+=" ("+s(r[o].size)+")"),w.filename.html(g);var C=e("<form style='display:block; position:absolute;left: 150px;' class='"+t.formGroup+"' method='"+a.method+"' action='"+a.url+"' enctype='"+a.enctype+"'></form>");C.appendTo("body");var b=[];b.push(r[o].name),v(C,l,w,b,t,r[o]),t.fileCounter++}else a.showError&&e("<div class='"+a.errorClass+"'><b>"+r[o].name+"</b> "+a.duplicateErrorStr+"</div>").appendTo(t.errorLog);else a.showError&&e("<div class='"+a.errorClass+"'><b>"+r[o].name+"</b> "+a.extErrorStr+a.allowedTypes+"</div>").appendTo(t.errorLog)}function n(e,a,t){var r=a.allowedTypes.toLowerCase().split(/[\s,]+/g),o=t.split(".").pop().toLowerCase();return"*"!=a.allowedTypes&&jQuery.inArray(o,r)<0?!1:!0}function d(e,a){var t=!1;if(e.existingFileNames.length)for(var r=0;r<e.existingFileNames.length;r++)(e.existingFileNames[r]==a||w.duplicateStrict&&e.existingFileNames[r].toLowerCase()==a.toLowerCase())&&(t=!0);return t}function p(e,a){if(e.existingFileNames.length)for(var t=0;t<a.length;t++){var r=e.existingFileNames.indexOf(a[t]);-1!=r&&e.existingFileNames.splice(r,1)}}function u(e,a){if(e){a.show();var t=new FileReader;t.onload=function(e){a.attr("src",e.target.result)},t.readAsDataURL(e)}}function c(a,t){if(a.showFileCounter){var r=e(t.container).find(".ajax-file-upload-filename").length;t.fileCounter=r+1,e(t.container).find(".ajax-file-upload-filename").each(function(t,o){var s=e(this).html().split(a.fileCounterStyle),i=(parseInt(s[0])-1,r+a.fileCounterStyle+s[1]);e(this).html(i),r--})}}function h(t,r,o,s){var i="ajax-upload-id-"+(new Date).getTime(),d=e("<form method='"+o.method+"' action='"+o.url+"' enctype='"+o.enctype+"'></form>"),p="<input type='file' id='"+i+"' name='"+o.fileName+"' accept='"+o.acceptFiles+"'/>";o.multiple&&(o.fileName.indexOf("[]")!=o.fileName.length-2&&(o.fileName+="[]"),p="<input type='file' id='"+i+"' name='"+o.fileName+"' accept='"+o.acceptFiles+"' multiple/>");var u=e(p).appendTo(d);u.change(function(){t.errorLog.html("");var i=(o.allowedTypes.toLowerCase().split(","),[]);if(this.files){for(g=0;g<this.files.length;g++)i.push(this.files[g].name);if(0==o.onSelect(this.files))return}else{var p=e(this).val(),u=[];if(i.push(p),!n(t,o,p))return void(o.showError&&e("<div class='"+o.errorClass+"'><b>"+p+"</b> "+o.extErrorStr+o.allowedTypes+"</div>").appendTo(t.errorLog));if(u.push({name:p,size:"NA"}),0==o.onSelect(u))return}if(c(o,t),s.unbind("click"),d.hide(),h(t,r,o,s),d.addClass(r),o.serialize&&a.fileapi&&a.formdata){d.removeClass(r);var f=this.files;d.remove(),l(o,t,f)}else{for(var w="",g=0;g<i.length;g++)w+=o.showFileCounter?t.fileCounter+o.fileCounterStyle+i[g]+"<br>":i[g]+"<br>",t.fileCounter++;if(-1!=o.maxFileCount&&t.selectedFiles+i.length>o.maxFileCount)return void(o.showError&&e("<div class='"+o.errorClass+"'><b>"+w+"</b> "+o.maxFileCountErrorStr+o.maxFileCount+"</div>").appendTo(t.errorLog));t.selectedFiles+=i.length;var C=new m(t,o);C.filename.html(w),v(d,o,C,i,t,null)}}),o.nestedForms?(d.css({margin:0,padding:0}),s.css({position:"relative",overflow:"hidden",cursor:"default"}),u.css({position:"absolute",cursor:"pointer",top:"0px",width:"100%",height:"100%",left:"0px","z-index":"100",opacity:"0.0",filter:"alpha(opacity=0)","-ms-filter":"alpha(opacity=0)","-khtml-opacity":"0.0","-moz-opacity":"0.0"}),d.appendTo(s)):(d.appendTo(e("body")),d.css({margin:0,padding:0,display:"block",position:"absolute",left:"-250px"}),-1!=navigator.appVersion.indexOf("MSIE ")?s.attr("for",i):s.click(function(){u.click()}))}function f(a,t){return this.statusbar=e("<div class='ajax-file-upload-statusbar'></div>").width(t.statusBarWidth),this.preview=e("<img class='ajax-file-upload-preview' />").width(t.previewWidth).height(t.previewHeight).appendTo(this.statusbar).hide(),this.filename=e("<div class='ajax-file-upload-filename'></div>").appendTo(this.statusbar),this.progressDiv=e("<div class='ajax-file-upload-progress'>").appendTo(this.statusbar).hide(),this.progressbar=e("<div class='ajax-file-upload-bar'></div>").appendTo(this.progressDiv),this.abort=e("<div>"+t.abortStr+"</div>").appendTo(this.statusbar).hide(),this.cancel=e("<div>
2485"+t.cancelStr+"</div>").appendTo(this.statusbar).hide(),this.done=e("<div>"+t.doneStr+"</div>").appendTo(this.statusbar).hide(),this.download=e("<div>"+t.downloadStr+"</div>").appendTo(this.statusbar).hide(),this.del=e("<div>"+t.deletelStr+"</div>").appendTo(this.statusbar).hide(),this.abort.addClass("ajax-file-upload-red"),this.done.addClass("ajax-file-upload-green"),this.download.addClass("ajax-file-upload-green"),this.cancel.addClass("ajax-file-upload-red"),this.del.addClass("ajax-file-upload-red"),this}function m(a,t){var r=null;return r=t.customProgressBar?new t.customProgressBar(a,t):new f(a,t),r.abort.addClass(a.formGroup),r.abort.addClass(t.abortButtonClass),r.cancel.addClass(a.formGroup),r.cancel.addClass(t.cancelButtonClass),t.extraHTML&&(r.extraHTML=e("<div class='extrahtml'>"+t.extraHTML()+"</div>").insertAfter(r.filename)),"bottom"==t.uploadQueueOrder?e(a.container).append(r.statusbar):e(a.container).prepend(r.statusbar),r}function v(t,o,s,l,n,d){var h={cache:!1,contentType:!1,processData:!1,forceSync:!1,type:o.method,data:o.formData,formData:o.fileData,dataType:o.returnType,beforeSubmit:function(a,r,d){if(0!=o.onSubmit.call(this,l)){if(o.dynamicFormData){var u=i(o.dynamicFormData());if(u)for(var h=0;h<u.length;h++)u[h]&&(void 0!=o.fileData?d.formData.append(u[h][0],u[h][1]):d.data[u[h][0]]=u[h][1])}return o.extraHTML&&e(s.extraHTML).find("input,select,textarea").each(function(a,t){void 0!=o.fileData?d.formData.append(e(this).attr("name"),e(this).val()):d.data[e(this).attr("name")]=e(this).val()}),!0}return s.statusbar.append("<div class='"+o.errorClass+"'>"+o.uploadErrorStr+"</div>"),s.cancel.show(),t.remove(),s.cancel.click(function(){x.splice(x.indexOf(t),1),p(n,l),s.statusbar.remove(),o.onCancel.call(n,l,s),n.selectedFiles-=l.length,c(o,n)}),!1},beforeSend:function(e,t){s.progressDiv.show(),s.cancel.hide(),s.done.hide(),o.showAbort&&(s.abort.show(),s.abort.click(function(){p(n,l),e.abort(),n.selectedFiles-=l.length,o.onAbort.call(n,l,s)})),a.formdata?s.progressbar.width("1%"):s.progressbar.width("5%")},uploadProgress:function(e,a,t,r){r>98&&(r=98);var i=r+"%";r>1&&s.progressbar.width(i),o.showProgress&&(s.progressbar.html(i),s.progressbar.css("text-align","center"))},success:function(a,r,i){if(s.cancel.remove(),D.pop(),"json"==o.returnType&&"object"==e.type(a)&&a.hasOwnProperty(o.customErrorKeyStr)){s.abort.hide();var d=a[o.customErrorKeyStr];return o.onError.call(this,l,200,d,s),o.showStatusAfterError?(s.progressDiv.hide(),s.statusbar.append("<span class='"+o.errorClass+"'>ERROR: "+d+"</span>")):(s.statusbar.hide(),s.statusbar.remove()),n.selectedFiles-=l.length,void t.remove()}n.responses.push(a),s.progressbar.width("100%"),o.showProgress&&(s.progressbar.html("100%"),s.progressbar.css("text-align","center")),s.abort.hide(),o.onSuccess.call(this,l,a,i,s),o.showStatusAfterSuccess?(o.showDone?(s.done.show(),s.done.click(function(){s.statusbar.hide("slow"),s.statusbar.remove()})):s.done.hide(),o.showDelete?(s.del.show(),s.del.click(function(){p(n,l),s.statusbar.hide().remove(),o.deleteCallback&&o.deleteCallback.call(this,a,s),n.selectedFiles-=l.length,c(o,n)})):s.del.hide()):(s.statusbar.hide("slow"),s.statusbar.remove()),o.showDownload&&(s.download.show(),s.download.click(function(){o.downloadCallback&&o.downloadCallback(a)})),t.remove()},error:function(e,a,r){s.cancel.remove(),D.pop(),s.abort.hide(),"abort"==e.statusText?(s.statusbar.hide("slow").remove(),c(o,n)):(o.onError.call(this,l,a,r,s),o.showStatusAfterError?(s.progressDiv.hide(),s.statusbar.append("<span class='"+o.errorClass+"'>ERROR: "+r+"</span>")):(s.statusbar.hide(),s.statusbar.remove()),n.selectedFiles-=l.length),t.remove()}};o.showPreview&&null!=d&&"image"==d.type.toLowerCase().split("/").shift()&&u(d,s.preview),o.autoSubmit?(t.ajaxForm(h),x.push(t),r()):(o.showCancel&&(s.cancel.show(),s.cancel.click(function(){x.splice(x.indexOf(t),1),p(n,l),t.remove(),s.statusbar.remove(),o.onCancel.call(n,l,s),n.selectedFiles-=l.length,c(o,n)})),t.ajaxForm(h))}var w=e.extend({url:"",method:"POST",enctype:"multipart/form-data",returnType:null,allowDuplicates:!0,duplicateStrict:!1,allowedTypes:"*",acceptFiles:"*",fileName:"file",formData:!1,dynamicFormData:!1,maxFileSize:-1,maxFileC
2485ount:-1,multiple:!0,dragDrop:!0,autoSubmit:!0,showCancel:!0,showAbort:!0,showDone:!1,showDelete:!1,showError:!0,showStatusAfterSuccess:!0,showStatusAfterError:!0,showFileCounter:!0,fileCounterStyle:"). ",showFileSize:!0,showProgress:!1,nestedForms:!0,showDownload:!1,onLoad:function(e){},onSelect:function(e){return!0},onSubmit:function(e,a){},onSuccess:function(e,a,t,r){},onError:function(e,a,t,r){},onCancel:function(e,a){},onAbort:function(e,a){},downloadCallback:!1,deleteCallback:!1,afterUploadAll:!1,serialize:!0,sequential:!1,sequentialCount:2,customProgressBar:!1,abortButtonClass:"ajax-file-upload-abort",cancelButtonClass:"ajax-file-upload-cancel",dragDropContainerClass:"ajax-upload-dragdrop",dragDropHoverClass:"state-hover",errorClass:"ajax-file-upload-error",uploadButtonClass:"ajax-file-upload",dragDropStr:"<span><b>Drag &amp; Drop Files</b></span>",uploadStr:"Select File",abortStr:"Abort",cancelStr:"Cancel",deletelStr:"Delete",doneStr:"Done",multiDragErrorStr:"Multiple File Drag &amp; Drop is not allowed.",extErrorStr:"is not allowed. Allowed extensions: ",duplicateErrorStr:"is not allowed. File already exists.",sizeErrorStr:"is not allowed. Allowed Max size: ",uploadErrorStr:"Upload is not allowed",maxFileCountErrorStr:" is not allowed. Maximum allowed files are:",downloadStr:"Download",customErrorKeyStr:"jquery-upload-file-error",showQueueDiv:!1,statusBarWidth:400,dragdropWidth:400,showPreview:!1,previewHeight:"auto",previewWidth:"100%",extraHTML:!1,uploadQueueOrder:"top"},t);this.fileCounter=1,this.selectedFiles=0;var g="ajax-file-upload-"+(new Date).getTime();this.formGroup=g,this.errorLog=e("<div></div>"),this.responses=[],this.existingFileNames=[],a.formdata||(w.dragDrop=!1),a.formdata||(w.multiple=!1),e(this).html("");var C=this,b=e("<div>"+w.uploadStr+"</div>");e(b).addClass(w.uploadButtonClass),function F(){if(e.fn.ajaxForm){if(w.dragDrop){var a=e('<div class="'+w.dragDropContainerClass+'" style="vertical-align:top;"></div>').width(w.dragdropWidth);e(C).append(a),e(a).append(b),e(a).append(e(w.dragDropStr)),o(C,w,a)}else e(C).append(b);e(C).append(C.errorLog),w.showQueueDiv?C.container=e("#"+w.showQueueDiv):C.container=e("<div class='ajax-file-upload-container'></div>").insertAfter(e(C)),w.onLoad.call(this,C),h(C,g,w,b)}else window.setTimeout(F,10)}(),this.startUpload=function(){e("form").each(function(a,t){e(this).hasClass(C.formGroup)&&x.push(e(this))}),x.length>=1&&r()},this.getFileCount=function(){return C.selectedFiles},this.stopUpload=function(){e("."+w.abortButtonClass).each(function(a,t){e(this).hasClass(C.formGroup)&&e(this).click()}),e("."+w.cancelButtonClass).each(function(a,t){e(this).hasClass(C.formGroup)&&e(this).click()})},this.cancelAll=function(){e("."+w.cancelButtonClass).each(function(a,t){e(this).hasClass(C.formGroup)&&e(this).click()})},this.update=function(a){w=e.extend(w,a)},this.reset=function(e){C.fileCounter=1,C.selectedFiles=0,C.errorLog.html(""),0!=e&&C.container.html("")},this.remove=function(){C.container.html(""),e(C).remove()},this.createProgress=function(e,a,t){var r=new m(this,w);r.progressDiv.show(),r.progressbar.width("100%");var o="";return o=w.showFileCounter?C.fileCounter+w.fileCounterStyle+e:e,w.showFileSize&&(o+=" ("+s(t)+")"),r.filename.html(o),C.fileCounter++,C.selectedFiles++,w.showPreview&&(r.preview.attr("src",a),r.preview.show()),w.showDownload&&(r.download.show(),r.download.click(function(){w.downloadCallback&&w.downloadCallback.call(C,[e])})),w.showDelete&&(r.del.show(),r.del.click(function(){r.statusbar.hide().remove();var a=[e];w.deleteCallback&&w.deleteCallback.call(this,a,r),C.selectedFiles-=1,c(w,C)})),r},this.getResponses=function(){return this.responses};var x=[],D=[],S=!1;return this}}(jQuery);;var jsPDF=(function(global){'use strict';var pdfVersion='1.3',pageFormats={'a0':[2383.94,3370.39],'a1':[1683.78,2383.94],'a2':[1190.55,1683.78],'a3':[841.89,1190.55],'a4':[595.28,841.89],'a5':[419.53,595.28],'a6':[297.64,419.53],'a7':[209.76,297.64],'a8':[147.40,209.76],'a9':[104.88,147.40],'a10':[73.70,104.88],'b0':[2834.65,4008.19],'b1':[2004.09,2834.65],'b2':[1417.32,2004.09],'b3':[1000.63,1417.32],'b4':[708.66,1000.63],'b5':[498.90,708.66],'b6':[354.33,498.90],'b7':[249.45,354.33],'b8':[175.75,249.45],'b9':[124.72,175.75],'b10':[87.87,124.72],'c0':[2599.37,3676.54],'c1':[1836.85,2599.37],'c2':[1298.27,1836.85],'c3':[918.43,1298.27],'c4':[649.13,918.43],'c5':[459.21,649.13],'c6':[323.15,459.21],'c7':[229.61,323.15],'c8':[161.57,229.61],'c9':[113.39,161.57],'c10':[79.37,113.39],'dl':[311.81,623.62],'letter':[612,792],'government-letter':[5
248576,756],'legal':[612,1008],'junior-legal':[576,360],'ledger':[1224,792],'tabloid':[792,1224],'credit-card':[153,243]};function PubSub(context){var topics={};this.subscribe=function(topic,callback,once){if(typeof callback!=='function'){return false;}
2486if(!topics.hasOwnProperty(topic)){topics[topic]={};}
2487var id=Math.random().toString(35);topics[topic][id]=[callback,!!once];return id;};this.unsubscribe=function(token){for(var topic in topics){if(topics[topic][token]){delete topics[topic][token];return true;}}
2488return false;};this.publish=function(topic){if(topics.hasOwnProperty(topic)){var args=Array.prototype.slice.call(arguments,1),idr=[];for(var id in topics[topic]){var sub=topics[topic][id];try{sub[0].apply(context,args);}catch(ex){if(global.console){console.error('jsPDF PubSub Error',ex.message,ex);}}
2489if(sub[1])idr.push(id);}
2490if(idr.length)idr.forEach(this.unsubscribe);}};}
2491function jsPDF(orientation,unit,format,compressPdf){var options={};if(typeof orientation==='object'){options=orientation;orientation=options.orientation;unit=options.unit||unit;format=options.format||format;compressPdf=options.compress||options.compressPdf||compressPdf;}
2492unit=unit||'mm';format=format||'a4';orientation=(''+(orientation||'P')).toLowerCase();var format_as_string=(''+format).toLowerCase(),compress=!!compressPdf&&typeof Uint8Array==='function',textColor=options.textColor||'0 g',drawColor=options.drawColor||'0 G',activeFontSize=options.fontSize||16,lineHeightProportion=options.lineHeight||1.15,lineWidth=options.lineWidth||0.200025,objectNumber=2,outToPages=!1,offsets=[],fonts={},fontmap={},activeFontKey,k,tmp,page=0,currentPage,pages=[],pagedim={},content=[],lineCapID=0,lineJoinID=0,content_length=0,pageWidth,pageHeight,pageMode,zoomMode,layoutMode,documentProperties={'title':'','subject':'','author':'','keywords':'','creator':''},API={},events=new PubSub(API),f2=function(number){return number.toFixed(2);},f3=function(number){return number.toFixed(3);},padd2=function(number){return('0'+parseInt(number)).slice(-2);},out=function(string){if(outToPages){pages[currentPage].push(string);}else{content_length+=string.length+1;content.push(string);}},newObject=function(){objectNumber++;offsets[objectNumber]=content_length;out(objectNumber+' 0 obj');return objectNumber;},putStream=function(str){out('stream');out(str);out('endstream');},putPages=function(){var n,p,arr,i,deflater,adler32,adler32cs,wPt,hPt;adler32cs=global.adler32cs||jsPDF.adler32cs;if(compress&&typeof adler32cs==='undefined'){compress=false;}
2493for(n=1;n<=page;n++){newObject();wPt=(pageWidth=pagedim[n].width)*k;hPt=(pageHeight=pagedim[n].height)*k;out('<</Type /Page');out('/Parent 1 0 R');out('/Resources 2 0 R');out('/MediaBox [0 0 '+f2(wPt)+' '+f2(hPt)+']');out('/Contents '+(objectNumber+1)+' 0 R>>');out('endobj');p=pages[n].join('\n');newObject();if(compress){arr=[];i=p.length;while(i--){arr[i]=p.charCodeAt(i);}
2494adler32=adler32cs.from(p);deflater=new Deflater(6);deflater.append(new Uint8Array(arr));p=deflater.flush();arr=new Uint8Array(p.length+6);arr.set(new Uint8Array([120,156])),arr.set(p,2);arr.set(new Uint8Array([adler32&0xFF,(adler32>>8)&0xFF,(adler32>>16)&0xFF,(adler32>>24)&0xFF]),p.length+2);p=String.fromCharCode.apply(null,arr);out('<</Length '+p.length+' /Filter [/FlateDecode]>>');}else{out('<</Length '+p.length+'>>');}
2495putStream(p);out('endobj');}
2496offsets[1]=content_length;out('1 0 obj');out('<</Type /Pages');var kids='/Kids [';for(i=0;i<page;i++){kids+=(3+2*i)+' 0 R ';}
2497out(kids+']');out('/Count '+page);out('>>');out('endobj');},putFont=function(font){font.objectNumber=newObject();out('<</BaseFont/'+font.PostScriptName+'/Type/Font');if(typeof font.encoding==='string'){out('/Encoding/'+font.encoding);}
2498out('/Subtype/Type1>>');out('endobj');},putFonts=function(){for(var fontKey in fonts){if(fonts.hasOwnProperty(fontKey)){putFont(fonts[fontKey]);}}},putXobjectDict=function(){events.publish('putXobjectDict');},putResourceDictionary=function(){out('/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]');out('/Font <<');for(var fontKey in fonts){if(fonts.hasOwnProperty(fontKey)){out('/'+fontKey+' '+fonts[fontKey].objectNumber+' 0 R');}}
2499out('>>');out('/XObject <<');putXobjectDict();out('>>');},putResources=function(){putFonts();events.publish('putResources');offsets[2]=content_length;out('2 0 obj');out('<<');putResourceDictionary();out('>>');out('endobj');events.publish('postPutResources');},addToFontDictionary=function(fontKey,fontName,fontStyle){if(!fontmap.hasOwnProperty(fontName)){fontmap[fontName]={};}
2500fontmap[fontName][fontStyle]=fontKey;},addFont=function(PostScriptName,fontName,fontStyle,encoding){var fontKey='F'+(Object.keys(fonts).length+1).toString(10),font=fonts[fontKey]={'id':fontKey,'PostScriptName':PostScriptName,'fontName':fontName,'fontStyle':fontStyle,'encoding':encoding,'metadata':{}};addToFontDictionary(fontKey,fontName,fontStyle);events.publish('addFont',font);return fontKey;},addFonts=function(){var HELVETICA="helvetica",TIMES="times",COURIER="courier",NORMAL="normal",BOLD="bold",ITALIC="italic",BOLD_ITALIC="bolditalic",encoding='StandardEncoding',standardFonts=[['Helvetica',HELVETICA,NORMAL],['Helvetica-Bold',HELVETICA,BOLD],['Helvetica-Oblique',HELVETICA,ITALIC],['Helvetica-BoldOblique',HELVETICA,BOLD_ITALIC],['Courier',COURIER,NORMAL],['Courier-Bold',COURIER,BOLD],['Courier-Oblique',COURIER,ITALIC],['Courier-BoldOblique',COURIER,BOLD_ITALIC],['Times-Roman',TIMES,NORMAL],['Times-Bold',TIMES,BOLD],['Times-Italic',TIMES,ITALIC],['Times-BoldItalic',TIMES,BOLD_ITALIC]];for(var i=0,l=standardFonts.length;i<l;i++){var fontKey=addFont(standardFonts[i][0],standardFonts[i][1],standardFonts[i][2],encoding);var parts=standardFonts[i][0].split('-');addToFontDictionary(fontKey,parts[0],parts[1]||'');}
2501events.publish('addFonts',{fonts:fonts,dictionary:fontmap});},SAFE=function __safeCall(fn){fn.foo=function __safeCallWrapper(){try{return fn.apply(this,arguments);}catch(e){var stack=e.stack||'';if(~stack.indexOf(' at '))stack=stack.split(" at ")[1];var m="Error in function "+stack.split("\n")[0].split('<')[0]+": "+e.message;if(global.console){global.console.error(m,e);if(global.alert)alert(m);}else{throw new Error(m);}}};fn.foo.bar=fn;return fn.foo;},to8bitStream=function(text,flags){var i,l,sourceEncoding,encodingBlock,outputEncoding,newtext,isUnicode,ch,bch;flags=flags||{};sourceEncoding=flags.sourceEncoding||'Unicode';outputEncoding=flags.outputEncoding;if((flags.autoencode||outputEncoding)&&fonts[activeFontKey].metadata&&fonts[activeFontKey].metadata[sourceEncoding]&&fonts[activeFontKey].metadata[sourceEncoding].encoding){encodingBlock=fonts[activeFontKey].metadata[sourceEncoding].encoding;if(!outputEncoding&&fonts[activeFontKey].encoding){outputEncoding=fonts[activeFontKey].encoding;}
2502if(!outputEncoding&&encodingBlock.codePages){outputEncoding=encodingBlock.codePages[0];}
2503if(typeof outputEncoding==='string'){outputEncoding=encodingBlock[outputEncoding];}
2504if(outputEncoding){isUnicode=false;newtext=[];for(i=0,l=text.length;i<l;i++){ch=outputEncoding[text.charCodeAt(i)];if(ch){newtext.push(String.fromCharCode(ch));}else{newtext.push(text[i]);}
2505if(newtext[i].charCodeAt(0)>>8){isUnicode=true;}}
2506text=newtext.join('');}}
2507i=text.length;while(isUnicode===undefined&&i!==0){if(text.charCodeAt(i-1)>>8){isUnicode=true;}
2508i--;}
2509if(!isUnicode){return text;}
2510newtext=flags.noBOM?[]:[254,255];for(i=0,l=text.length;i<l;i++){ch=text.charCodeAt(i);bch=ch>>8;if(bch>>8){throw new Error("Character at position "+i+" of string '"
2511+text+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");}
2512newtext.push(bch);newtext.push(ch-(bch<<8));}
2513return String.fromCharCode.apply(undefined,newtext);},pdfEscape=function(text,flags){return to8bitStream(text,flags).replace(/\\/g,'\\\\').replace(/\(/g,'\\(').replace(/\)/g,'\\)');},putInfo=function(){out('/Producer (jsPDF '+jsPDF.version+')');for(var key in documentProperties){if(documentProperties.hasOwnProperty(key)&&documentProperties[key]){out('/'+key.substr(0,1).toUpperCase()+key.substr(1)
2514+' ('+pdfEscape(documentProperties[key])+')');}}
2515var created=new Date(),tzoffset=created.getTimezoneOffset(),tzsign=tzoffset<0?'+':'-',tzhour=Math.floor(Math.abs(tzoffset/60)),tzmin=Math.abs(tzoffset%60),tzstr=[tzsign,padd2(tzhour),"'",padd2(tzmin),"'"].join('');out(['/CreationDate (D:',created.getFullYear(),padd2(created.getMonth()+1),padd2(created.getDate()),padd2(created.getHours()),padd2(created.getMinutes()),padd2(created.getSeconds()),tzstr,')'].join(''));},putCatalog=function(){out('/Type /Catalog');out('/Pages 1 0 R');if(!zoomMode)zoomMode='fullwidth';switch(zoomMode){case'fullwidth':out('/OpenAction [3 0 R /FitH null]');break;case'fullheight':out('/OpenAction [3 0 R /FitV null]');break;case'fullpage':out('/OpenAction [3 0 R /Fit]');break;case'original':out('/OpenAction [3 0 R /XYZ null null 1]');break;default:var pcn=''+zoomMode;if(pcn.substr(pcn.length-1)==='%')
2516zoomMode=parseInt(zoomMode)/100;if(typeof zoomMode==='number'){out('/OpenAction [3 0 R /XYZ null null '+f2(zoomMode)+']');}}
2517if(!layoutMode)layoutMode='continuous';switch(layoutMode){case'continuous':out('/PageLayout /OneColumn');break;case'single':out('/PageLayout /SinglePage');break;case'two':case'twoleft':out('/PageLayout /TwoColumnLeft');break;case'tworight':out('/PageLayout /TwoColumnRight');break;}
2518if(pageMode){out('/PageMode /'+pageMode);}
2519events.publish('putCatalog');},putTrailer=function(){out('/Size '+(objectNumber+1));out('/Root '+objectNumber+' 0 R');out('/Info '+(objectNumber-1)+' 0 R');},beginPage=function(width,height){var orientation=typeof height==='string'&&height.toLowerCase();if(typeof width==='string'){var format=width.toLowerCase();if(pageFormats.hasOwnProperty(format)){width=pageFormats[format][0]/k;height=pageFormats[format][1]/k;}}
2520if(Array.isArray(width)){height=width[1];width=width[0];}
2521if(orientation){switch(orientation.substr(0,1)){case'l':if(height>width)orientation='s';break;case'p':if(width>height)orientation='s';break;}
2522if(orientation==='s'){tmp=width;width=height;height=tmp;}}
2523outToPages=true;pages[++page]=[];pagedim[page]={width:Number(width)||pageWidth,height:Number(height)||pageHeight};_setPage(page);},_addPage=function(){beginPage.apply(this,arguments);out(f2(lineWidth*k)+' w');out(drawColor);if(lineCapID!==0){out(lineCapID+' J');}
2524if(lineJoinID!==0){out(lineJoinID+' j');}
2525events.publish('addPage',{pageNumber:page});},_setPage=function(n){if(n>0&&n<=page){currentPage=n;pageWidth=pagedim[n].width;pageHeight=pagedim[n].height;}},getFont=function(fontName,fontStyle){var key;fontName=fontName!==undefined?fontName:fonts[activeFontKey].fontName;fontStyle=fontStyle!==undefined?fontStyle:fonts[activeFontKey].fontStyle;try{key=fontmap[fontName][fontStyle];}catch(e){}
2526if(!key){throw new Error("Unable to look up font label for font '"+fontName+"', '"
2527+fontStyle+"'. Refer to getFontList() for available fonts.");}
2528return key;},buildDocument=function(){outToPages=false;objectNumber=2;content=[];offsets=[];out('%PDF-'+pdfVersion);putPages();putResources();newObject();out('<<');putInfo();out('>>');out('endobj');newObject();out('<<');putCatalog();out('>>');out('endobj');var o=content_length,i,p="0000000000";out('xref');out('0 '+(objectNumber+1));out(p+' 65535 f ');for(i=1;i<=objectNumber;i++){out((p+offsets[i]).slice(-10)+' 00000 n ');}
2529out('trailer');out('<<');putTrailer();out('>>');out('startxref');out(o);out('%%EOF');outToPages=true;return content.join('\n');},getStyle=function(style){var op='S';if(style==='F'){op='f';}else if(style==='FD'||style==='DF'){op='B';}else if(style==='f'||style==='f*'||style==='B'||style==='B*'){op=style;}
2530return op;},getArrayBuffer=function(){var data=buildDocument(),len=data.length,ab=new ArrayBuffer(len),u8=new Uint8Array(ab);while(len--)u8[len]=data.charCodeAt(len);return ab;},getBlob=function(){return new Blob([getArrayBuffer()],{type:"application/pdf"});},output=SAFE(function(type,options){var datauri=(''+type).substr(0,6)==='dataur'?'data:application/pdf;base64,'+btoa(buildDocument()):0;switch(type){case undefined:return buildDocument();case'save':if(navigator.getUserMedia){if(global.URL===undefined||global.URL.createObjectURL===undefined){return API.output('dataurlnewwindow');}}
2531saveAs(getBlob(),options);if(typeof saveAs.unload==='function'){if(global.setTimeout){setTimeout(saveAs.unload,911);}}
2532break;case'arraybuffer':return getArrayBuffer();case'blob':return getBlob();case'bloburi':case'bloburl':return global.URL&&global.URL.createObjectURL(getBlob())||void 0;case'datauristring':case'dataurlstring':return datauri;case'dataurlnewwindow':var nW=global.open(datauri);if(nW||typeof safari==="undefined")return nW;case'datauri':case'dataurl':return global.document.location.href=datauri;default:throw new Error('Output type "'+type+'" is not supported.');}});switch(unit){case'pt':k=1;break;case'mm':k=72/25.4;break;case'cm':k=72/2.54;break;
2532case'in':k=72;break;case'px':k=96/72;break;case'pc':k=12;break;case'em':k=12;break;case'ex':k=6;break;default:throw('Invalid unit: '+unit);}
2533API.internal={'pdfEscape':pdfEscape,'getStyle':getStyle,'getFont':function(){return fonts[getFont.apply(API,arguments)];},'getFontSize':function(){return activeFontSize;},'getLineHeight':function(){return activeFontSize*lineHeightProportion;},'write':function(string1){out(arguments.length===1?string1:Array.prototype.join.call(arguments,' '));},'getCoordinateString':function(value){return f2(value*k);},'getVerticalCoordinateString':function(value){return f2((pageHeight-value)*k);},'collections':{},'newObject':newObject,'putStream':putStream,'events':events,'scaleFactor':k,'pageSize':{get width(){return pageWidth},get height(){return pageHeight}},'output':function(type,options){return output(type,options);},'getNumberOfPages':function(){return pages.length-1;},'pages':pages};API.addPage=function(){_addPage.apply(this,arguments);return this;};API.setPage=function(){_setPage.apply(this,arguments);return this;};API.setDisplayMode=function(zoom,layout,pmode){zoomMode=zoom;layoutMode=layout;pageMode=pmode;return this;},API.text=function(text,x,y,flags,angle){function ESC(s){s=s.split("\t").join(Array(options.TabLen||9).join(" "));return pdfEscape(s,flags);}
2534if(typeof text==='number'){tmp=y;y=x;x=text;text=tmp;}
2535if(typeof text==='string'&&text.match(/[\n\r]/)){text=text.split(/\r\n|\r|\n/g);}
2536if(typeof flags==='number'){angle=flags;flags=null;}
2537var xtra='',mode='Td',todo;if(angle){angle*=(Math.PI/180);var c=Math.cos(angle),s=Math.sin(angle);xtra=[f2(c),f2(s),f2(s*-1),f2(c),''].join(" ");mode='Tm';}
2538flags=flags||{};if(!('noBOM'in flags))
2539flags.noBOM=true;if(!('autoencode'in flags))
2540flags.autoencode=true;if(typeof text==='string'){text=ESC(text);}else if(text instanceof Array){var sa=text.concat(),da=[],len=sa.length;while(len--){da.push(ESC(sa.shift()));}
2541var linesLeft=Math.ceil((pageHeight-y)*k/(activeFontSize*lineHeightProportion));if(0<=linesLeft&&linesLeft<da.length+1){todo=da.splice(linesLeft-1);}
2542text=da.join(") Tj\nT* (");}else{throw new Error('Type of text must be string or Array. "'+text+'" is not recognized.');}
2543out('BT\n/'+
2544activeFontKey+' '+activeFontSize+' Tf\n'+
2545(activeFontSize*lineHeightProportion)+' TL\n'+
2546textColor+'\n'+xtra+f2(x*k)+' '+f2((pageHeight-y)*k)+' '+mode+'\n('+
2547text+') Tj\nET');if(todo){this.addPage();this.text(todo,x,activeFontSize*1.7/k);}
2548return this;};API.lstext=function(text,x,y,spacing){for(var i=0,len=text.length;i<len;i++,x+=spacing)this.text(text[i],x,y);};API.line=function(x1,y1,x2,y2){return this.lines([[x2-x1,y2-y1]],x1,y1);};API.clip=function(){out('W')
2549out('S')};API.lines=function(lines,x,y,scale,style,closed){var scalex,scaley,i,l,leg,x2,y2,x3,y3,x4,y4;if(typeof lines==='number'){tmp=y;y=x;x=lines;lines=tmp;}
2550scale=scale||[1,1];out(f3(x*k)+' '+f3((pageHeight-y)*k)+' m ');scalex=scale[0];scaley=scale[1];l=lines.length;x4=x;y4=y;for(i=0;i<l;i++){leg=lines[i];if(leg.length===2){x4=leg[0]*scalex+x4;y4=leg[1]*scaley+y4;out(f3(x4*k)+' '+f3((pageHeight-y4)*k)+' l');}else{x2=leg[0]*scalex+x4;y2=leg[1]*scaley+y4;x3=leg[2]*scalex+x4;y3=leg[3]*scaley+y4;x4=leg[4]*scalex+x4;y4=leg[5]*scaley+y4;out(f3(x2*k)+' '+
2551f3((pageHeight-y2)*k)+' '+
2552f3(x3*k)+' '+
2553f3((pageHeight-y3)*k)+' '+
2554f3(x4*k)+' '+
2555f3((pageHeight-y4)*k)+' c');}}
2556if(closed){out(' h');}
2557if(style!==null){out(getStyle(style));}
2558return this;};API.rect=function(x,y,w,h,style){var op=getStyle(style);out([f2(x*k),f2((pageHeight-y)*k),f2(w*k),f2(-h*k),'re'].join(' '));if(style!==null){out(getStyle(style));}
2559return this;};API.triangle=function(x1,y1,x2,y2,x3,y3,style){this.lines([[x2-x1,y2-y1],[x3-x2,y3-y2],[x1-x3,y1-y3]],x1,y1,[1,1],style,true);return this;};API.roundedRect=function(x,y,w,h,rx,ry,style){var MyArc=4/3*(Math.SQRT2-1);this.lines([[(w-2*rx),0],[(rx*MyArc),0,rx,ry-(ry*MyArc),rx,ry],[0,(h-2*ry)],[0,(ry*MyArc),-(rx*MyArc),ry,-rx,ry],[(-w+2*rx),0],[-(rx*MyArc),0,-rx,-(ry*MyArc),-rx,-ry],[0,(-h+2*ry)],[0,-(ry*MyArc),(rx*MyArc),-ry,rx,-ry]],x+rx,y,[1,1],style);return this;};API.ellipse=function(x,y,rx,ry,style){var lx=4/3*(Math.SQRT2-1)*rx,ly=4/3*(Math.SQRT2-1)*ry;out([f2((x+rx)*k),f2((pageHeight-y)*k),'m',f2((x+rx)*k),f2((pageHeight-(y-ly
2559))*k),f2((x+lx)*k),f2((pageHeight-(y-ry))*k),f2(x*k),f2((pageHeight-(y-ry))*k),'c'].join(' '));out([f2((x-lx)*k),f2((pageHeight-(y-ry))*k),f2((x-rx)*k),f2((pageHeight-(y-ly))*k),f2((x-rx)*k),f2((pageHeight-y)*k),'c'].join(' '));out([f2((x-rx)*k),f2((pageHeight-(y+ly))*k),f2((x-lx)*k),f2((pageHeight-(y+ry))*k),f2(x*k),f2((pageHeight-(y+ry))*k),'c'].join(' '));out([f2((x+lx)*k),f2((pageHeight-(y+ry))*k),f2((x+rx)*k),f2((pageHeight-(y+ly))*k),f2((x+rx)*k),f2((pageHeight-y)*k),'c'].join(' '));if(style!==null){out(getStyle(style));}
2560return this;};API.circle=function(x,y,r,style){return this.ellipse(x,y,r,r,style);};API.setProperties=function(properties){for(var property in documentProperties){if(documentProperties.hasOwnProperty(property)&&properties[property]){documentProperties[property]=properties[property];}}
2561return this;};API.setFontSize=function(size){activeFontSize=size;return this;};API.setFont=function(fontName,fontStyle){activeFontKey=getFont(fontName,fontStyle);return this;};API.setFontStyle=API.setFontType=function(style){activeFontKey=getFont(undefined,style);return this;};API.getFontList=function(){var list={},fontName,fontStyle,tmp;for(fontName in fontmap){if(fontmap.hasOwnProperty(fontName)){list[fontName]=tmp=[];for(fontStyle in fontmap[fontName]){if(fontmap[fontName].hasOwnProperty(fontStyle)){tmp.push(fontStyle);}}}}
2562return list;};API.setLineWidth=function(width){out((width*k).toFixed(2)+' w');return this;};API.setDrawColor=function(ch1,ch2,ch3,ch4){var color;if(ch2===undefined||(ch4===undefined&&ch1===ch2===ch3)){if(typeof ch1==='string'){color=ch1+' G';}else{color=f2(ch1/255)+' G';}}else if(ch4===undefined){if(typeof ch1==='string'){color=[ch1,ch2,ch3,'RG'].join(' ');}else{color=[f2(ch1/255),f2(ch2/255),f2(ch3/255),'RG'].join(' ');}}else{if(typeof ch1==='string'){color=[ch1,ch2,ch3,ch4,'K'].join(' ');}else{color=[f2(ch1),f2(ch2),f2(ch3),f2(ch4),'K'].join(' ');}}
2563out(color);return this;};API.setFillColor=function(ch1,ch2,ch3,ch4){var color;if(ch2===undefined||(ch4===undefined&&ch1===ch2===ch3)){if(typeof ch1==='string'){color=ch1+' g';}else{color=f2(ch1/255)+' g';}}else if(ch4===undefined){if(typeof ch1==='string'){color=[ch1,ch2,ch3,'rg'].join(' ');}else{color=[f2(ch1/255),f2(ch2/255),f2(ch3/255),'rg'].join(' ');}}else{if(typeof ch1==='string'){color=[ch1,ch2,ch3,ch4,'k'].join(' ');}else{color=[f2(ch1),f2(ch2),f2(ch3),f2(ch4),'k'].join(' ');}}
2564out(color);return this;};API.setTextColor=function(r,g,b){if((typeof r==='string')&&/^#[0-9A-Fa-f]{6}$/.test(r)){var hex=parseInt(r.substr(1),16);r=(hex>>16)&255;g=(hex>>8)&255;b=(hex&255);}
2565if((r===0&&g===0&&b===0)||(typeof g==='undefined')){textColor=f3(r/255)+' g';}else{textColor=[f3(r/255),f3(g/255),f3(b/255),'rg'].join(' ');}
2566return this;};API.CapJoinStyles={0:0,'butt':0,'but':0,'miter':0,1:1,'round':1,'rounded':1,'circle':1,2:2,'projecting':2,'project':2,'square':2,'bevel':2};API.setLineCap=function(style){var id=this.CapJoinStyles[style];if(id===undefined){throw new Error("Line cap style of '"+style+"' is not recognized. See or extend .CapJoinStyles property for valid styles");}
2567lineCapID=id;out(id+' J');return this;};API.setLineJoin=function(style){var id=this.CapJoinStyles[style];if(id===undefined){throw new Error("Line join style of '"+style+"' is not recognized. See or extend .CapJoinStyles property for valid styles");}
2568lineJoinID=id;out(id+' j');return this;};API.output=output;API.save=function(filename){API.output('save',filename);};for(var plugin in jsPDF.API){if(jsPDF.API.hasOwnProperty(plugin)){if(plugin==='events'&&jsPDF.API.events.length){(function(events,newEvents){var eventname,handler_and_args,i;for(i=newEvents.length-1;i!==-1;i--){eventname=newEvents[i][0];handler_and_args=newEvents[i][1];events.subscribe.apply(events,[eventname].concat(typeof handler_and_args==='function'?[handler_and_args]:handler_and_args));}}(events,jsPDF.API.events));}else{API[plugin]=jsPDF.API[plugin];}}}
2569addFonts();activeFontKey='F1';_addPage(format,orientation);events.publish('initialized');return API;}
2570jsPDF.API={events:[]};
2570jsPDF.version="1.0.272-debug 2014-09-29T15:09:diegocr";if(typeof define==='function'&&define.amd){define('jsPDF',function(){return jsPDF;});}else{global.jsPDF=jsPDF;}
2571return jsPDF;}(typeof self!=="undefined"&&self||typeof window!=="undefined"&&window||this));(function(jsPDFAPI){'use strict';jsPDFAPI.addHTML=function(element,x,y,options,callback){'use strict';if(typeof html2canvas==='undefined'&&typeof rasterizeHTML==='undefined')
2572throw new Error('You need either '
2573+'https://github.com/niklasvh/html2canvas'
2574+' or https://github.com/cburgmer/rasterizeHTML.js');if(typeof x!=='number'){options=x;callback=y;}
2575if(typeof options==='function'){callback=options;options=null;}
2576var I=this.internal,K=I.scaleFactor,W=I.pageSize.width,H=I.pageSize.height;options=options||{};options.onrendered=function(obj){x=parseInt(x)||0;y=parseInt(y)||0;var dim=options.dim||{};var h=dim.h||0;var w=dim.w||Math.min(W,obj.width/K)-x;var format='JPEG';if(options.format)
2577format=options.format;if(obj.height>H&&options.pagesplit){var crop=function(){var cy=0;while(1){var canvas=document.createElement('canvas');canvas.width=Math.min(W*K,obj.width);canvas.height=Math.min(H*K,obj.height-cy);var ctx=canvas.getContext('2d');ctx.drawImage(obj,0,cy,obj.width,canvas.height,0,0,canvas.width,canvas.height);var args=[canvas,x,cy?0:y,canvas.width/K,canvas.height/K,format,null,'SLOW'];this.addImage.apply(this,args);cy+=canvas.height;if(cy>=obj.height)break;this.addPage();}
2578callback(w,cy,null,args);}.bind(this);if(obj.nodeName==='CANVAS'){var img=new Image();img.onload=crop;img.src=obj.toDataURL("image/png");obj=img;}else{crop();}}else{var alias=Math.random().toString(35);var args=[obj,x,y,w,h,format,alias,'SLOW'];this.addImage.apply(this,args);callback(w,h,alias,args);}}.bind(this);if(typeof html2canvas!=='undefined'&&!options.rstz){return html2canvas(element,options);}
2579if(typeof rasterizeHTML!=='undefined'){var meth='drawDocument';if(typeof element==='string'){meth=/^http/.test(element)?'drawURL':'drawHTML';}
2580options.width=options.width||(W*K);return rasterizeHTML[meth](element,void 0,options).then(function(r){options.onrendered(r.image);},function(e){callback(null,e);});}
2581return null;};})(jsPDF.API);;(function(jsPDFAPI){'use strict'
2582var namespace='addImage_',supported_image_types=['jpeg','jpg','png'];var putImage=function(img){var objectNumber=this.internal.newObject(),out=this.internal.write,putStream=this.internal.putStream
2583img['n']=objectNumber
2584out('<</Type /XObject')
2585out('/Subtype /Image')
2586out('/Width '+img['w'])
2587out('/Height '+img['h'])
2588if(img['cs']===this.color_spaces.INDEXED){out('/ColorSpace [/Indexed /DeviceRGB '
2589+(img['pal'].length/3-1)+' '+('smask'in img?objectNumber+2:objectNumber+1)
2590+' 0 R]');}else{out('/ColorSpace /'+img['cs']);if(img['cs']===this.color_spaces.DEVICE_CMYK){out('/Decode [1 0 1 0 1 0 1 0]');}}
2591out('/BitsPerComponent '+img['bpc']);if('f'in img){out('/Filter /'+img['f']);}
2592if('dp'in img){out('/DecodeParms <<'+img['dp']+'>>');}
2593if('trns'in img&&img['trns'].constructor==Array){var trns='',i=0,len=img['trns'].length;for(;i<len;i++)
2594trns+=(img['trns'][i]+' '+img['trns'][i]+' ');out('/Mask ['+trns+']');}
2595if('smask'in img){out('/SMask '+(objectNumber+1)+' 0 R');}
2596out('/Length '+img['data'].length+'>>');putStream(img['data']);out('endobj');if('smask'in img){var dp='/Predictor 15 /Colors 1 /BitsPerComponent '+img['bpc']+' /Columns '+img['w'];var smask={'w':img['w'],'h':img['h'],'cs':'DeviceGray','bpc':img['bpc'],'dp':dp,'data':img['smask']};if('f'in img)
2597smask.f=img['f'];putImage.call(this,smask);}
2598if(img['cs']===this.color_spaces.INDEXED){this.internal.newObject();out('<< /Length '+img['pal'].length+'>>');putStream(this.arrayBufferToBinaryString(new Uint8Array(img['pal'])));out('endobj');}},putResourcesCallback=function(){var images=this.internal.collections[namespace+'images']
2599for(var i in images){putImage.call(this,images[i])}},putXObjectsDictCallback=function(){var images=this.internal.collections[namespace+'images'],out=this.internal.write,image
2600for(var i in images){image=images[i]
2601out('/I'+image['i'],image['n'],'0','R')}},checkCompressValue=function(value){if(value&&typeof value==='string')
2602value=value.toUpperCase();return value in jsPDFAPI.image_compression?value:jsPDFAPI.image_compression.NONE;},getImages=function(){var images=this.internal.collections[namespace+'images'];
2602if(!images){this.internal.collections[namespace+'images']=images={};this.internal.events.subscribe('putResources',putResourcesCallback);this.internal.events.subscribe('putXobjectDict',putXObjectsDictCallback);}
2603return images;},getImageIndex=function(images){var imageIndex=0;if(images){imageIndex=Object.keys?Object.keys(images).length:(function(o){var i=0
2604for(var e in o){if(o.hasOwnProperty(e)){i++}}
2605return i})(images)}
2606return imageIndex;},notDefined=function(value){return typeof value==='undefined'||value===null;},generateAliasFromData=function(data){return typeof data==='string'&&jsPDFAPI.sHashCode(data);},doesNotSupportImageType=function(type){return supported_image_types.indexOf(type)===-1;},processMethodNotEnabled=function(type){return typeof jsPDFAPI['process'+type.toUpperCase()]!=='function';},isDOMElement=function(object){return typeof object==='object'&&object.nodeType===1;},createDataURIFromElement=function(element,format,angle){if(element.nodeName==='IMG'&&element.hasAttribute('src')){var src=''+element.getAttribute('src');if(!angle&&src.indexOf('data:image/')===0)return src;if(!format&&/\.png(?:[?#].*)?$/i.test(src))format='png';}
2607if(element.nodeName==='CANVAS'){var canvas=element;}else{var canvas=document.createElement('canvas');canvas.width=element.clientWidth||element.width;canvas.height=element.clientHeight||element.height;var ctx=canvas.getContext('2d');if(!ctx){throw('addImage requires canvas to be supported by browser.');}
2608if(angle){var x,y,b,c,s,w,h,to_radians=Math.PI/180,angleInRadians;if(typeof angle==='object'){x=angle.x;y=angle.y;b=angle.bg;angle=angle.angle;}
2609angleInRadians=angle*to_radians;c=Math.abs(Math.cos(angleInRadians));s=Math.abs(Math.sin(angleInRadians));w=canvas.width;h=canvas.height;canvas.width=h*s+w*c;canvas.height=h*c+w*s;if(isNaN(x))x=canvas.width/2;if(isNaN(y))y=canvas.height/2;ctx.clearRect(0,0,canvas.width,canvas.height);ctx.fillStyle=b||'white';ctx.fillRect(0,0,canvas.width,canvas.height);ctx.save();ctx.translate(x,y);ctx.rotate(angleInRadians);ctx.drawImage(element,-(w/2),-(h/2));ctx.rotate(-angleInRadians);ctx.translate(-x,-y);ctx.restore();}else{ctx.drawImage(element,0,0,canvas.width,canvas.height);}}
2610return canvas.toDataURL((''+format).toLowerCase()=='png'?'image/png':'image/jpeg');},checkImagesForAlias=function(alias,images){var cached_info;if(images){for(var e in images){if(alias===images[e].alias){cached_info=images[e];break;}}}
2611return cached_info;},determineWidthAndHeight=function(w,h,info){if(!w&&!h){w=-96;h=-96;}
2612if(w<0){w=(-1)*info['w']*72/w/this.internal.scaleFactor;}
2613if(h<0){h=(-1)*info['h']*72/h/this.internal.scaleFactor;}
2614if(w===0){w=h*info['w']/info['h'];}
2615if(h===0){h=w*info['h']/info['w'];}
2616return[w,h];},writeImageToPDF=function(x,y,w,h,info,index,images){var dims=determineWidthAndHeight.call(this,w,h,info),coord=this.internal.getCoordinateString,vcoord=this.internal.getVerticalCoordinateString;w=dims[0];h=dims[1];images[index]=info;this.internal.write('q',coord(w),'0 0',coord(h),coord(x),vcoord(y+h),'cm /I'+info['i'],'Do Q')};jsPDFAPI.color_spaces={DEVICE_RGB:'DeviceRGB',DEVICE_GRAY:'DeviceGray',DEVICE_CMYK:'DeviceCMYK',CAL_GREY:'CalGray',CAL_RGB:'CalRGB',LAB:'Lab',ICC_BASED:'ICCBased',INDEXED:'Indexed',PATTERN:'Pattern',SEPERATION:'Seperation',DEVICE_N:'DeviceN'};jsPDFAPI.decode={DCT_DECODE:'DCTDecode',FLATE_DECODE:'FlateDecode',LZW_DECODE:'LZWDecode',JPX_DECODE:'JPXDecode',JBIG2_DECODE:'JBIG2Decode',ASCII85_DECODE:'ASCII85Decode',ASCII_HEX_DECODE:'ASCIIHexDecode',RUN_LENGTH_DECODE:'RunLengthDecode',CCITT_FAX_DECODE:'CCITTFaxDecode'};jsPDFAPI.image_compression={NONE:'NONE',FAST:'FAST',MEDIUM:'MEDIUM',SLOW:'SLOW'};jsPDFAPI.sHashCode=function(str){return Array.prototype.reduce&&str.split("").reduce(function(a,b){a=((a<<5)-a)+b.charCodeAt(0);return a&a},0);};jsPDFAPI.isString=function(object){return typeof object==='string';};jsPDFAPI.extractInfoFromBase64DataURI=function(dataURI){return/^data:([\w]+?\/([\w]+?));base64,(.+?)$/g.exec(dataURI);};jsPDFAPI.supportsArrayBuffer=function(){return typeof ArrayBuffer!=='undefined'&&typeof Uint8Array!=='undefined';};jsPDFAPI.isArrayBuffer=function(object){if(!this.supportsArrayBuffer())
2617return false;return object instanceof ArrayBuffer;};jsPDFAPI.isArrayBufferView=function(object){if(!this.supportsArrayBuffer())
2618return false;if(typeof Uint32Array==='undefined')
2619return false;return(object instanceof Int8Array||object instanceof Uint8Array||(typeof Uint8ClampedArray!=='undefined'&&object instanceof Uint8ClampedArray)||object instanceof Int16Array||object instanceof Uint16Array||object instanceof Int32Array||object instanceof Uint32Array||object instanceof Float32Array||object instanceof Float64Array);};jsPDFAPI.binaryStringToUint8Array=function(binary_string){var len=binary_string.length;var bytes=new Uint8Array(len);for(var i=0;i<len;i++){bytes[i]=binary_string.charCodeAt(i);}
2620return bytes;};jsPDFAPI.arrayBufferToBinaryString=function(buffer){if(this.isArrayBuffer(buffer))
2621buffer=new Uint8Array(buffer);var binary_string='';var len=buffer.byteLength;for(var i=0;i<len;i++){binary_string+=String.fromCharCode(buffer[i]);}
2622return binary_string;};jsPDFAPI.arrayBufferToBase64=function(arrayBuffer){var base64=''
2623var encodings='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
2623+/'
2624var bytes=new Uint8Array(arrayBuffer)
2625var byteLength=bytes.byteLength
2626var byteRemainder=byteLength%3
2627var mainLength=byteLength-byteRemainder
2628var a,b,c,d
2629var chunk
2630for(var i=0;i<mainLength;i=i+3){chunk=(bytes[i]<<16)|(bytes[i+1]<<8)|bytes[i+2]
2631a=(chunk&16515072)>>18
2632b=(chunk&258048)>>12
2633c=(chunk&4032)>>6
2634d=chunk&63
2635base64+=encodings[a]+encodings[b]+encodings[c]+encodings[d]}
2636if(byteRemainder==1){chunk=bytes[mainLength]
2637a=(chunk&252)>>2
2638b=(chunk&3)<<4
2639base64+=encodings[a]+encodings[b]+'=='}else if(byteRemainder==2){chunk=(bytes[mainLength]<<8)|bytes[mainLength+1]
2640a=(chunk&64512)>>10
2641b=(chunk&1008)>>4
2642c=(chunk&15)<<2
2643base64+=encodings[a]+encodings[b]+encodings[c]+'='}
2644return base64};jsPDFAPI.createImageInfo=function(data,wd,ht,cs,bpc,f,imageIndex,alias,dp,trns,pal,smask){var info={alias:alias,w:wd,h:ht,cs:cs,bpc:bpc,i:imageIndex,data:data};if(f)info.f=f;if(dp)info.dp=dp;if(trns)info.trns=trns;if(pal)info.pal=pal;if(smask)info.smask=smask;return info;};jsPDFAPI.addImage=function(imageData,format,x,y,w,h,alias,compression,rotation){'use strict'
2645if(typeof format!=='string'){var tmp=h;h=w;w=y;y=x;x=format;format=tmp;}
2646if(typeof imageData==='object'&&!isDOMElement(imageData)&&"imageData"in imageData){var options=imageData;imageData=options.imageData;format=options.format||format;x=options.x||x||0;y=options.y||y||0;w=options.w||w;h=options.h||h;alias=options.alias||alias;compression=options.compression||compression;rotation=options.rotation||options.angle||rotation;}
2647if(isNaN(x)||isNaN(y))
2648{console.error('jsPDF.addImage: Invalid coordinates',arguments);throw new Error('Invalid coordinates passed to jsPDF.addImage');}
2649var images=getImages.call(this),info;if(!(info=checkImagesForAlias(imageData,images))){var dataAsBinaryString;if(isDOMElement(imageData))
2650imageData=createDataURIFromElement(imageData,format,rotation);if(notDefined(alias))
2651alias=generateAliasFromData(imageData);if(!(info=checkImagesForAlias(alias,images))){if(this.isString(imageData)){var base64Info=this.extractInfoFromBase64DataURI(imageData);if(base64Info){format=base64Info[2];imageData=atob(base64Info[3]);}else{if(imageData.charCodeAt(0)===0x89&&imageData.charCodeAt(1)===0x50&&imageData.charCodeAt(2)===0x4e&&imageData.charCodeAt(3)===0x47)format='png';}}
2652format=(format||'JPEG').toLowerCase();if(doesNotSupportImageType(format))
2653throw new Error('addImage currently only supports formats '+supported_image_types+', not \''+format+'\'');if(processMethodNotEnabled(format))
2654throw new Error('please ensure that the plugin for \''+format+'\' support is added');if(this.supportsArrayBuffer()){dataAsBinaryString=imageData;imageData=this.binaryStringToUint8Array(imageData);}
2655info=this['process'+format.toUpperCase()](imageData,getImageIndex(images),alias,checkCompressValue(compression),dataAsBinaryString);if(!info)
2656throw new Error('An unkwown error occurred whilst processing the image');}}
2657writeImageToPDF.call(this,x,y,w,h,info,info.i,images);return this};var getJpegSize=function(imgData){'use strict'
2658var width,height,numcomponents;if(!imgData.charCodeAt(0)===0xff||!imgData.charCodeAt(1)===0xd8||!imgData.charCodeAt(2)===0xff||!imgData.charCodeAt(3)===0xe0||!imgData.charCodeAt(6)==='J'.charCodeAt(0)||!imgData.charCodeAt(7)==='F'.charCodeAt(0)||!imgData.charCodeAt(8)==='I'.charCodeAt(0)||!imgData.charCodeAt(9)==='F'.charCodeAt(0)||!imgData.charCodeAt(10)===0x00){throw new Error('getJpegSize requires a binary string jpeg file')}
2659var blockLength=imgData.charCodeAt(4)*256+imgData.charCodeAt(5);var i=4,len=imgData.length;while(i<len){i+=blockLength;if(imgData.charCodeAt(i)!==0xff){throw new Error('getJpegSize could not find the size of the image');}
2660if(imgData.charCodeAt(i+1)===0xc0||imgData.charCodeAt(i+1)===0xc1||imgData.charCodeAt(i+1)===0xc2||imgData.charCodeAt(i+1)===0xc3||imgData.charCodeAt(i+1)===0xc4||imgData.charCodeAt(i+1)===0xc5||imgData.charCodeAt(i+1)===0xc6||imgData.charCodeAt(i+1)===0xc7){height=imgData.charCodeAt(i+5)*256+imgData.charCodeAt(i+6);width=imgData.charCodeAt(i+7)*256+imgData.charCodeAt(i+8);numcomponents=imgData.charCodeAt(i+9);return[width,height,numcomponents];}else{i+=2;blockLength=imgData.charCodeAt(i)*256+imgData.charCodeAt(i+1)}}},getJpegSizeFromBytes=function(data){var hdr=(data[0]<<8)|data[1];if(hdr!==0xFFD8)
2661throw new Error('Supplied data is not a JPEG');var len=data.length,block=(data[4]<<8)+data[5],pos=4,bytes,width,height,numcomponents;while(pos<len){pos+=block;bytes=readBytes(data,pos);block=(bytes[2]<<8)+bytes[3];if((bytes[1]===0xC0||bytes[1]===0xC2)&&bytes[0]===0xFF&&block>7){bytes=readBytes(data,pos+5);width=(bytes[2]<<8)+bytes[3];height=(bytes[0]<<8)+bytes[1];numcomponents=bytes[4];return{width:width,height:height,numcomponents:numcomponents};}
2662pos+=2;}
2663throw new Error('getJpegSizeFromBytes could not find the size of the image');},readBytes=function(data,offset){return data.subarray(offset,offset+5);};jsPDFAPI.processJPEG=function(data,index,alias,compression,dataAsBinaryString){'use strict'
2664var colorSpace=this.color_spaces.DEVICE_RGB,filter=this.decode.DCT_DECODE,bpc=8,dims;if(this.isString(data)){dims=getJpegSize(data);return this.createImageInfo(data,dims[0],dims[1],dims[3]==1?this.color_spaces.DEVICE_GRAY:colorSpace,bpc,filter,index,alias);}
2665if(this.isArrayBuffer(data))
2666data=new Uint8Array(data);if(this.isArrayBufferView(data)){dims=getJpegSizeFromBytes(data);data=dataAsBinaryString||this.arrayBufferToBinaryString(data);return this.createImageInfo(data,dims.width,dims.height,dims.numcomponents==1?this.color_spaces.DEVICE_GRAY:colorSpace,bpc,filter,index,alias);}
2667return null;};jsPDFAPI.processJPG=function(){return this.processJPEG.apply(this,arguments);}})(jsPDF.API);(function(jsPDFAPI){'use strict';jsPDFAPI.autoPrint=function(){'use strict'
2668var refAutoPrintTag;this.internal.events.subscribe('postPutResources',function(){refAutoPrintTag=this.internal.newObject()
2669this.internal.write("<< /S/Named /Type/Action /N/Print >>","endobj");});this.internal.events.subscribe("putCatalog",function(){this.internal.write("/OpenAction "+refAutoPrintTag+" 0"+" R");});return this;};})(jsPDF.API);(function(jsPDFAPI){'use strict';var fontName,fontSize,fontStyle,padding=3,margin=13,headerFunction,lastCellPos={x:undefined,y:undefined,w:undefined,h:undefined,ln:undefined},pages=1,setLastCellPosition=function(x,y,w,h,ln){lastCellPos={'x':x,'y':y,'w':w,'h':h,'ln':ln};},getLastCellPosition=function(){return lastCellPos;},NO_MARGINS={left:0,top:0,bottom:0};jsPDFAPI.setHeaderFunction=function(func){headerFunction=func;};jsPDFAPI.getTextDimensions=function(txt){fontName=this.internal.getFont().fontName;fontSize=this.table_font_size||this.internal.getFontSize();fontStyle=this.internal.getFont().fontStyle;var px2pt=0.264583*72/25.4,dimensions,text;text=document.createElement('font');text.id="jsPDFCell";text.style.fontStyle=fontStyle;text.style.fontName=fontName;text.style.fontSize=fontSize+'pt';text.textContent=txt;document.body.appendChild(text);dimensions={w:(text.offsetWidth+1)*px2pt,h:(text.offsetHeight+1)*px2pt};document.body.removeChild(text);return dimensions;};jsPDFAPI.cellAddPage=function(){var margins=this.margins||NO_MARGINS;this.addPage();setLastCellPosition(margins.left,margins.top,undefined,undefined);pages+=1;};jsPDFAPI.cellInitialize=function(){lastCellPos={x:undefined,y:undefined,w:undefined,h:undefined,ln:undefined};pages=1;};jsPDFAPI.cell=function(x,y,w,h,txt,ln,align){var curCell=getLastCellPosition();if(curCell.ln!==undefined){if(curCell.ln===ln){x=curCell.x+curCell.w;y=curCell.y;}else{var margins=this.margins||NO_MARGINS;if((curCell.y+curCell.h+h+margin)>=this.internal.pageSize.height-margins.bottom){this.cellAddPage();if(this.printHeaders&&this.tableHeaderRow){this.printHeaderRow(ln,true);}}
2670y=(getLastCellPosition().y+getLastCellPosition().h);}}
2671if(txt[0]!==undefined){if(this.printingHeaderRow){this.rect(x,y,w,h,'FD');}else{this.rect(x,y,w,h);}
2672if(align==='right'){if(txt instanceof Array){for(var i=0;i<txt.length;i++){var currentLine=txt[i];var textSize=this.getStringUnitWidth(currentLine)*this.internal.getFontSize();this.text(currentLine,x+w-textSize-padding,y+this.internal.getLineHeight()*(i+1));}}}else{this.text(txt,x+padding,y+this.internal.getLineHeight());}}
2673setLastCellPosition(x,y,w,h,ln);return this;};jsPDFAPI.arrayMax=function(array,comparisonFn){var max=array[0],i,ln,item;for(i=0,ln=array.length;i<ln;i+=1){item=array[i];if(comparisonFn){if(comparisonFn(max,item)===-1){max=item;}}else{if(item>max){max=item;}}}
2674return max;};jsPDFAPI.table=function(x,y,data,headers,config){if(!data){throw'No data for PDF table';}
2675var headerNames=[],headerPrompts=[],header,i,ln,cln,columnMatrix={},columnWidths={},columnData,column,columnMinWidths=[],j,tableHeaderConfigs=[],model,jln,func,autoSize=false,printHeaders=true,fontSize=12,margins=NO_MARGINS;margins.width=this.internal.pageSize.width;if(config){if(config.autoSize===true){autoSize=true;}
2676if(config.printHeaders===false){printHeaders=false;}
2677if(config.fontSize){fontSize=config.fontSize;}
2678if(config.margins){margins=config.margins;}}
2679this.lnMod=0;lastCellPos={x:undefined,y:undefined,w:undefined,h:undefined,ln:undefined},pages=1;this.printHeaders=printHeaders;this.margins=margins;this.setFontSize(fontSize);this.table_font_size=fontSize;if(headers===undefined||(headers===null)){headerNames=Object.keys(data[0]);}else if(headers[0]&&(typeof headers[0]!=='string')){var px2pt=0.264583*72/25.4;for(i=0,ln=headers.length;i<ln;i+=1){header=headers[i];headerNames.push(header.name);headerPrompts.push(header.prompt);
2679columnWidths[header.name]=header.width*px2pt;}}else{headerNames=headers;}
2680if(autoSize){func=function(rec){return rec[header];};for(i=0,ln=headerNames.length;i<ln;i+=1){header=headerNames[i];columnMatrix[header]=data.map(func);columnMinWidths.push(this.getTextDimensions(headerPrompts[i]||header).w);column=columnMatrix[header];for(j=0,cln=column.length;j<cln;j+=1){columnData=column[j];columnMinWidths.push(this.getTextDimensions(columnData).w);}
2681columnWidths[header]=jsPDFAPI.arrayMax(columnMinWidths);}}
2682if(printHeaders){var lineHeight=this.calculateLineHeight(headerNames,columnWidths,headerPrompts.length?headerPrompts:headerNames);for(i=0,ln=headerNames.length;i<ln;i+=1){header=headerNames[i];tableHeaderConfigs.push([x,y,columnWidths[header],lineHeight,String(headerPrompts.length?headerPrompts[i]:header)]);}
2683this.setTableHeaderRow(tableHeaderConfigs);this.printHeaderRow(1,false);}
2684for(i=0,ln=data.length;i<ln;i+=1){var lineHeight;model=data[i];lineHeight=this.calculateLineHeight(headerNames,columnWidths,model);for(j=0,jln=headerNames.length;j<jln;j+=1){header=headerNames[j];this.cell(x,y,columnWidths[header],lineHeight,model[header],i+2,header.align);}}
2685this.lastCellPos=lastCellPos;this.table_x=x;this.table_y=y;return this;};jsPDFAPI.calculateLineHeight=function(headerNames,columnWidths,model){var header,lineHeight=0;for(var j=0;j<headerNames.length;j++){header=headerNames[j];model[header]=this.splitTextToSize(String(model[header]),columnWidths[header]-padding);var h=this.internal.getLineHeight()*model[header].length+padding;if(h>lineHeight)
2686lineHeight=h;}
2687return lineHeight;};jsPDFAPI.setTableHeaderRow=function(config){this.tableHeaderRow=config;};jsPDFAPI.printHeaderRow=function(lineNumber,new_page){if(!this.tableHeaderRow){throw'Property tableHeaderRow does not exist.';}
2688var tableHeaderCell,tmpArray,i,ln;this.printingHeaderRow=true;if(headerFunction!==undefined){var position=headerFunction(this,pages);setLastCellPosition(position[0],position[1],position[2],position[3],-1);}
2689this.setFontStyle('bold');var tempHeaderConf=[];for(i=0,ln=this.tableHeaderRow.length;i<ln;i+=1){this.setFillColor(200,200,200);tableHeaderCell=this.tableHeaderRow[i];if(new_page){tableHeaderCell[1]=this.margins&&this.margins.top||0;tempHeaderConf.push(tableHeaderCell);}
2690tmpArray=[].concat(tableHeaderCell);this.cell.apply(this,tmpArray.concat(lineNumber));}
2691if(tempHeaderConf.length>0){this.setTableHeaderRow(tempHeaderConf);}
2692this.setFontStyle('normal');this.printingHeaderRow=false;};})(jsPDF.API);(function(jsPDFAPI){var clone,DrillForContent,FontNameDB,FontStyleMap,FontWeightMap,FloatMap,ClearMap,GetCSS,PurgeWhiteSpace,Renderer,ResolveFont,ResolveUnitedNumber,UnitedNumberMap,elementHandledElsewhere,images,loadImgs,checkForFooter,process,tableToJson;clone=(function(){return function(obj){Clone.prototype=obj;return new Clone()};function Clone(){}})();PurgeWhiteSpace=function(array){var fragment,i,l,lTrimmed,r,rTrimmed,trailingSpace;i=0;l=array.length;fragment=void 0;lTrimmed=false;rTrimmed=false;while(!lTrimmed&&i!==l){fragment=array[i]=array[i].trimLeft();if(fragment){lTrimmed=true;}
2693i++;}
2694i=l-1;while(l&&!rTrimmed&&i!==-1){fragment=array[i]=array[i].trimRight();if(fragment){rTrimmed=true;}
2695i--;}
2696r=/\s+$/g;trailingSpace=true;i=0;while(i!==l){fragment=array[i].replace(/\s+/g," ");if(trailingSpace){fragment=fragment.trimLeft();}
2697if(fragment){trailingSpace=r.test(fragment);}
2698array[i]=fragment;i++;}
2699return array;};Renderer=function(pdf,x,y,settings){this.pdf=pdf;this.x=x;this.y=y;this.settings=settings;this.watchFunctions=[];this.init();return this;};ResolveFont=function(css_font_family_string){var name,part,parts;name=void 0;parts=css_font_family_string.split(",");part=parts.shift();while(!name&&part){name=FontNameDB[part.trim().toLowerCase()];part=parts.shift();}
2700return name;};ResolveUnitedNumber=function(css_line_height_string){css_line_height_string=css_line_height_string==="auto"?"0px":css_line_height_string;if(css_line_height_string.indexOf("em")>-1&&!isNaN(Number(css_line_height_string.replace("em","")))){css_line_height_string=Number(css_line_height_string.replace("em",""))*18.719+"px";}
2701if(css_line_height_string.indexOf("pt")>-1&&!isNaN(Number(css_line_height_string.replace("pt","")))){css_line_height_string=Number(css_line_height_string.replace("pt",""))*1.333+"px";}
2702var normal,undef,value;undef=void 0;normal=16.00;value=UnitedNumberMap[css_line_height_string];if(value){return value;}
2703value={"xx-small":9,"x-small":11,small:13,medium:16,large:19,"x-large":23,"xx-large":28,auto:0}[{css_line_height_string:css_line_height_string}];if(value!==undef){return UnitedNumberMap[css_line_height_string]=value/normal;}
2704if(value=parseFloat(css_line_height_string)){return UnitedNumberMap[css_line_height_string]=value/normal;}
2705value=css_line_height_string.match(/([\d\.]+)(px)/);if(value.length===3){return UnitedNumberMap[css_line_height_string]=parseFloat(value[1])/normal;}
2706return UnitedNumberMap[css_line_height_string]=1;};GetCSS=function(element){var css,tmp,computedCSSElement;computedCSSElement=(function(el){var compCSS;compCSS=(function(el){if(document.defaultView&&document.defaultView.getComputedStyle){return document.defaultView.getComputedStyle(el,null);}else if(el.currentStyle){return el.currentStyle;}else{return el.style;}})(el);return function(prop){prop=prop.replace(/-\D/g,function(match){return match.charAt(1).toUpperCase();});return compCSS[prop];};})(element);css={};tmp=void 0;css["font-family"]=ResolveFont(computedCSSElement("font-family"))||"times";css["font-style"]=FontStyleMap[computedCSSElement("font-style")]||"normal";css["text-align"]=TextAlignMap[computedCSSElement("text-align")]||"left";tmp=FontWeightMap[computedCSSElement("font-weight")]||"normal";if(tmp==="bold"){if(css["font-style"]==="normal"){css["font-style"]=tmp;}else{css["font-style"]=tmp+css["font-style"];}}
2707css["font-size"]=ResolveUnitedNumber(computedCSSElement("font-size"))||1;css["line-height"]=ResolveUnitedNumber(computedCSSElement("line-height"))||1;css["display"]=(computedCSSElement("display")==="inline"?"inline":"block");tmp=(css["display"]==="block");css["margin-top"]=tmp&&ResolveUnitedNumber(computedCSSElement("margin-top"))||0;css["margin-bottom"]=tmp&&ResolveUnitedNumber(computedCSSElement("margin-bottom"))||0;css["padding-top"]=tmp&&ResolveUnitedNumber(computedCSSElement("padding-top"))||0;css["padding-bottom"]=tmp&&ResolveUnitedNumber(computedCSSElement("padding-bottom"))||0;css["margin-left"]=tmp&&ResolveUnitedNumber(computedCSSElement("margin-left"))||0;css["margin-right"]=tmp&&ResolveUnitedNumber(computedCSSElement("margin-right"))||0;css["padding-left"]=tmp&&ResolveUnitedNumber(computedCSSElement("padding-left"))||0;css["padding-right"]=tmp&&ResolveUnitedNumber(computedCSSElement("padding-right"))||0;css["float"]=FloatMap[computedCSSElement("cssFloat")]||"none";css["clear"]=ClearMap[computedCSSElement("clear")]||"none";return css;};elementHandledElsewhere=function(element,renderer,elementHandlers){var handlers,i,isHandledElsewhere,l,t;isHandledElsewhere=false;i=void 0;l=void 0;t=void 0;
2707handlers=elementHandlers["#"+element.id];if(handlers){if(typeof handlers==="function"){isHandledElsewhere=handlers(element,renderer);}else{i=0;l=handlers.length;while(!isHandledElsewhere&&i!==l){isHandledElsewhere=handlers[i](element,renderer);i++;}}}
2708handlers=elementHandlers[element.nodeName];if(!isHandledElsewhere&&handlers){if(typeof handlers==="function"){isHandledElsewhere=handlers(element,renderer);}else{i=0;l=handlers.length;while(!isHandledElsewhere&&i!==l){isHandledElsewhere=handlers[i](element,renderer);i++;}}}
2709return isHandledElsewhere;};tableToJson=function(table,renderer){var data,headers,i,j,rowData,tableRow,table_obj,table_with,cell,l;data=[];headers=[];i=0;l=table.rows[0].cells.length;table_with=table.clientWidth;while(i<l){cell=table.rows[0].cells[i];headers[i]={name:cell.textContent.toLowerCase().replace(/\s+/g,''),prompt:cell.textContent.replace(/\r?\n/g,''),width:(cell.clientWidth/table_with)*renderer.pdf.internal.pageSize.width};i++;}
2710i=1;while(i<table.rows.length){tableRow=table.rows[i];rowData={};j=0;while(j<tableRow.cells.length){rowData[headers[j].name]=tableRow.cells[j].textContent.replace(/\r?\n/g,'');j++;}
2711data.push(rowData);i++;}
2712return table_obj={rows:data,headers:headers};};var SkipNode={SCRIPT:1,STYLE:1,NOSCRIPT:1,OBJECT:1,EMBED:1,SELECT:1};var listCount=1;DrillForContent=function(element,renderer,elementHandlers){var cn,cns,fragmentCSS,i,isBlock,l,px2pt,table2json,cb;cns=element.childNodes;cn=void 0;fragmentCSS=GetCSS(element);isBlock=fragmentCSS.display==="block";if(isBlock){renderer.setBlockBoundary();renderer.setBlockStyle(fragmentCSS);}
2713px2pt=0.264583*72/25.4;i=0;l=cns.length;while(i<l){cn=cns[i];if(typeof cn==="object"){renderer.executeWatchFunctions(cn);if(cn.nodeType===1&&cn.nodeName==='HEADER'){var header=cn;var oldMarginTop=renderer.pdf.margins_doc.top;renderer.pdf.internal.events.subscribe('addPage',function(pageInfo){renderer.y=oldMarginTop;DrillForContent(header,renderer,elementHandlers);renderer.pdf.margins_doc.top=renderer.y+10;renderer.y+=10;},false);}
2714if(cn.nodeType===8&&cn.nodeName==="#comment"){if(~cn.textContent.indexOf("ADD_PAGE")){renderer.pdf.addPage();renderer.y=renderer.pdf.margins_doc.top;}}else if(cn.nodeType===1&&!SkipNode[cn.nodeName]){var cached_image;if(cn.nodeName==="IMG"){var url=cn.getAttribute("src");cached_image=images[renderer.pdf.sHashCode(url)||url];}
2715if(cached_image){if((renderer.pdf.internal.pageSize.height-renderer.pdf.margins_doc.bottom<renderer.y+cn.height)&&(renderer.y>renderer.pdf.margins_doc.top)){renderer.pdf.addPage();renderer.y=renderer.pdf.margins_doc.top;renderer.executeWatchFunctions(cn);}
2716var imagesCSS=GetCSS(cn);var imageX=renderer.x;var fontToUnitRatio=12/renderer.pdf.internal.scaleFactor;var additionalSpaceLeft=(imagesCSS["margin-left"]+imagesCSS["padding-left"])*fontToUnitRatio;var additionalSpaceRight=(imagesCSS["margin-right"]+imagesCSS["padding-right"])*fontToUnitRatio;var additionalSpaceTop=(imagesCSS["margin-top"]+imagesCSS["padding-top"])*fontToUnitRatio;var additionalSpaceBottom=(imagesCSS["margin-bottom"]+imagesCSS["padding-bottom"])*fontToUnitRatio;if(imagesCSS['float']!==undefined&&imagesCSS['float']==='right'){imageX+=renderer.settings.width-cn.width-additionalSpaceRight;}else{imageX+=additionalSpaceLeft;}
2717renderer.pdf.addImage(cached_image,imageX,renderer.y+additionalSpaceTop,cn.width,cn.height);cached_image=undefined;if(imagesCSS['float']==='right'||imagesCSS['float']==='left'){renderer.watchFunctions.push((function(diffX,thresholdY,diffWidth,el){if(renderer.y>=thresholdY){renderer.x+=diffX;renderer.settings.width+=diffWidth;return true;}else if(el&&el.nodeType===1&&!SkipNode[el.nodeName]&&renderer.x+el.width>(renderer.pdf.margins_doc.left+renderer.pdf.margins_doc.width)){renderer.x+=diffX;renderer.y=thresholdY;renderer.settings.width+=diffWidth;return true;}else{return false;}}).bind(this,(imagesCSS['float']==='left')?-cn.width-additionalSpaceLeft-additionalSpaceRight:0,renderer.y+cn.height+additionalSpaceTop+additionalSpaceBottom,cn.width));renderer.watchFunctions.push((function(yPositionAfterFloating,pages,el){if(renderer.y<yPositionAfterFloating&&pages===renderer.pdf.internal.getNumberOfPages()){if(el.nodeType===1&&GetCSS(el).clear==='both'){renderer.y=yPositionAfterFloating;return true;}else{return false;}}else{return true;}}
2717).bind(this,renderer.y+cn.height,renderer.pdf.internal.getNumberOfPages()));renderer.settings.width-=cn.width+additionalSpaceLeft+additionalSpaceRight;if(imagesCSS['float']==='left'){renderer.x+=cn.width+additionalSpaceLeft+additionalSpaceRight;}}else{renderer.y+=cn.height+additionalSpaceBottom;}}else if(cn.nodeName==="TABLE"){table2json=tableToJson(cn,renderer);renderer.y+=10;renderer.pdf.table(renderer.x,renderer.y,table2json.rows,table2json.headers,{autoSize:false,printHeaders:true,margins:renderer.pdf.margins_doc});renderer.y=renderer.pdf.lastCellPos.y+renderer.pdf.lastCellPos.h+20;}else if(cn.nodeName==="OL"||cn.nodeName==="UL"){listCount=1;if(!elementHandledElsewhere(cn,renderer,elementHandlers)){DrillForContent(cn,renderer,elementHandlers);}
2718renderer.y+=10;}else if(cn.nodeName==="LI"){var temp=renderer.x;renderer.x+=cn.parentNode.nodeName==="UL"?22:10;renderer.y+=3;if(!elementHandledElsewhere(cn,renderer,elementHandlers)){DrillForContent(cn,renderer,elementHandlers);}
2719renderer.x=temp;}else if(cn.nodeName==="BR"){renderer.y+=fragmentCSS["font-size"]*renderer.pdf.internal.scaleFactor;}else{if(!elementHandledElsewhere(cn,renderer,elementHandlers)){DrillForContent(cn,renderer,elementHandlers);}}}else if(cn.nodeType===3){var value=cn.nodeValue;if(cn.nodeValue&&cn.parentNode.nodeName==="LI"){if(cn.parentNode.parentNode.nodeName==="OL"){value=listCount++ +'. '+value;}else{var fontPx=fragmentCSS["font-size"]*16;var radius=2;if(fontPx>20){radius=3;}
2720cb=function(x,y){this.pdf.circle(x,y,radius,'FD');};}}
2721renderer.addText(value,fragmentCSS);}else if(typeof cn==="string"){renderer.addText(cn,fragmentCSS);}}
2722i++;}
2723if(isBlock){return renderer.setBlockBoundary(cb);}};images={};loadImgs=function(element,renderer,elementHandlers,cb){var imgs=element.getElementsByTagName('img'),l=imgs.length,found_images,x=0;function done(){renderer.pdf.internal.events.publish('imagesLoaded');cb(found_images);}
2724function loadImage(url,width,height){if(!url)
2725return;var img=new Image();found_images=++x;img.crossOrigin='';img.onerror=img.onload=function(){if(img.complete){if(img.src.indexOf('data:image/')===0){img.width=width||img.width||0;img.height=height||img.height||0;}
2726if(img.width+img.height){var hash=renderer.pdf.sHashCode(url)||url;images[hash]=images[hash]||img;}}
2727if(!--x){done();}};img.src=url;}
2728while(l--)
2729loadImage(imgs[l].getAttribute("src"),imgs[l].width,imgs[l].height);return x||done();};checkForFooter=function(elem,renderer,elementHandlers){var footer=elem.getElementsByTagName("footer");if(footer.length>0){footer=footer[0];var oldOut=renderer.pdf.internal.write;var oldY=renderer.y;renderer.pdf.internal.write=function(){};DrillForContent(footer,renderer,elementHandlers);var footerHeight=Math.ceil(renderer.y-oldY)+5;renderer.y=oldY;renderer.pdf.internal.write=oldOut;renderer.pdf.margins_doc.bottom+=footerHeight;var renderFooter=function(pageInfo){var pageNumber=pageInfo!==undefined?pageInfo.pageNumber:1;var oldPosition=renderer.y;renderer.y=renderer.pdf.internal.pageSize.height-renderer.pdf.margins_doc.bottom;renderer.pdf.margins_doc.bottom-=footerHeight;var spans=footer.getElementsByTagName('span');for(var i=0;i<spans.length;++i){if((" "+spans[i].className+" ").replace(/[\n\t]/g," ").indexOf(" pageCounter ")>-1){spans[i].innerHTML=pageNumber;}
2730if((" "+spans[i].className+" ").replace(/[\n\t]/g," ").indexOf(" totalPages ")>-1){spans[i].innerHTML='###jsPDFVarTotalPages###';}}
2731DrillForContent(footer,renderer,elementHandlers);renderer.pdf.margins_doc.bottom+=footerHeight;renderer.y=oldPosition;};var spans=footer.getElementsByTagName('span');for(var i=0;i<spans.length;++i){if((" "+spans[i].className+" ").replace(/[\n\t]/g," ").indexOf(" totalPages ")>-1){renderer.pdf.internal.events.subscribe('htmlRenderingFinished',renderer.pdf.putTotalPages.bind(renderer.pdf,'###jsPDFVarTotalPages###'),true);}}
2732renderer.pdf.internal.events.subscribe('addPage',renderFooter,false);renderFooter();SkipNode['FOOTER']=1;}};process=function(pdf,element,x,y,settings,callback){if(!element)
2733return false;if(typeof element!=="string"&&!element.parentNode)
2734element=''+element.innerHTML;if(typeof element==="string"){element=(function(element){var $frame,$hiddendiv,framename,visuallyhidden;framename="jsPDFhtmlText"+Date.now().toString()+(Math.random()*1000).toFixed(0);visuallyhidden="position: absolute !important;"+"clip: rect(1px 1px 1px 1px); /* IE6, IE7 */"+"clip: rect(1px, 1px, 1px, 1px);"+"padding:0 !important;"+"border:0 !important;"+"height: 1px !important;"+"width: 1px !important; "+"top:auto;"+"left:-100px;"+"overflow: hidden;";$hiddendiv=document.createElement('div');$hiddendiv.style.cssText=visuallyhidden;$hiddendiv.innerHTML="<iframe style=\"height:1px;width:1px\" name=\""+framename+"\" />";document.body.appendChild($hiddendiv);$frame=window.frames[framename];$frame.document.body.innerHTML=element;return $frame.document.body;})(element.replace(/<\/?script[^>]*?>/gi,''));}
2735var r=new Renderer(pdf,x,y,settings),out;loadImgs.call(this,element,r,settings.elementHandlers,function(found_images){checkForFooter(element,r,settings.elementHandlers);DrillForContent(element,r,settings.elementHandlers);r.pdf.internal.events.publish('htmlRenderingFinished');out=r.dispose();if(typeof callback==='function')callback(out);else if(found_images)console.error('jsPDF Warning: rendering issues? provide a callback to fromHTML!');});return out||{x:r.x,y:r.y};};Renderer.prototype.init=function(){this.paragraph={text:[],style:[]};return this.pdf.internal.write("q");};Renderer.prototype.dispose=function(){this.pdf.internal.write("Q");return{x:this.x,y:this.y,ready:true};};Renderer.prototype.executeWatchFunctions=function(el){var ret=false;var narray=[];if(this.watchFunctions.length>0){for(var i=0;i<this.watchFunctions.length;++i){if(this.watchFunctions[i](el)===true){ret=true;}else{narray.push(this.watchFunctions[i]);}}
2736this.watchFunctions=narray;}
2737return ret;};Renderer.prototype.splitFragmentsIntoLines=function(fragments,styles){var currentLineLength,defaultFontSize,ff,fontMetrics,fontMetricsCache,fragment,fragmentChopped,fragmentLength,fragmentSpecificMetrics,fs,k,line,lines,maxLineLength,style;defaultFontSize=12;k=this.pdf.internal.scaleFactor;fontMetricsCache={};ff=void 0;fs=void 0;fontMetrics=void 0;fragment=void 0;style=void 0;fragmentSpecificMetrics=void 0;fragmentLength=void 0;fragmentChopped=void 0;line=[];lines=[line];currentLineLength=0;maxLineLength=this.settings.width;while(fragments.length){fragment=fragments.shift();style=styles.shift();if(fragment){ff=style["font-family"];fs=style["font-style"];fontMetrics=fontMetricsCache[ff+fs];if(!fontMetrics){fontMetrics=this.pdf.internal.getFont(ff,fs).metadata.Unicode;fontMetricsCache[ff+fs]=fontMetrics;}
2738fragmentSpecificMetrics={widths:fontMetrics.widths,kerning:fontMetrics.kerning,fontSize:style["font-size"]*defaultFontSize,textIndent:currentLineLength};fragmentLength=this.pdf.getStringUnitWidth(fragment,fragmentSpecificMetrics)*fragmentSpecificMetrics.fontSize/k;if(currentLineLength+fragmentLength>maxLineLength){fragmentChopped=this.pdf.splitTextToSize(fragment,maxLineLength,fragmentSpecificMetrics);line.push([fragmentChopped.shift(),style]);while(fragmentChopped.length){line=[[fragmentChopped.shift(),style]];lines.push(line);}
2739currentLineLength=this.pdf.getStringUnitWidth(line[0][0],fragmentSpecificMetrics)*fragmentSpecificMetrics.fontSize/k;}else{line.push([fragment,style]);currentLineLength+=fragmentLength;}}}
2740if(style['text-align']!==undefined&&(style['text-align']==='center'||style['text-align']==='right'||style['text-align']==='justify')){for(var i=0;i<lines.length;++i){var length=this.pdf.getStringUnitWidth(lines[i][0][0],fragmentSpecificMetrics)*fragmentSpecificMetrics.fontSize/k;if(i>0){lines[i][0][1]=clone(lines[i][0][1]);}
2741var space=(maxLineLength-length);if(style['text-align']==='right'){lines[i][0][1]['margin-left']=space;}else if(style['text-align']==='center'){lines[i][0][1]['margin-left']=space/2;}else if(style['text-align']==='justify'){var countSpaces=lines[i][0][0].split(' ').length-1;lines[i][0][1]['word-spacing']=space/countSpaces;if(i===(lines.length-1)){lines[i][0][1]['word-spacing']=0;}}}}
2742return lines;};Renderer.prototype.RenderTextFragment=function(text,style){var defaultFontSize,font,maxLineHeight;maxLineHeight=0;defaultFontSize=12;if(this.pdf.internal.pageSize.height-this.pdf.margins_doc.bottom<this.y+this.pdf.internal.getFontSize()){this.pdf.internal.write("ET","Q");this.pdf.addPage();this.y=this.pdf.margins_doc.top;this.pdf.internal.write("q","BT 0 g",this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td");maxLineHeight=Math.max(maxLineHeight,style["line-height"],style["font-size"]);this.pdf.internal.write(0,(-1*defaultFontSize*maxLineHeight).toFixed(2),"Td");}
2743font=this.pdf.internal.getFont(style["font-family"],style["font-style"]);if(style['word-spacing']!==undefined&&style['word-spacing']>0){this.pdf.internal.write(style['word-spacing'].toFixed(2),"Tw");}
2744this.pdf.internal.write("/"+font.id,(defaultFontSize*style["font-size"]).toFixed(2),"Tf","("+this.pdf.internal.pdfEscape(text)+") Tj");if(style['word-spacing']!==undefined){this.pdf.internal.write(0,"Tw");}};Renderer.prototype.renderParagraph=function(cb){var blockstyle,defaultFontSize,fontToUnitRatio,fragments,i,l,line,lines,maxLineHeight,out,paragraphspacing_after,paragraphspacing_before,priorblockstype,styles,fontSize;fragments=PurgeWhiteSpace(this.paragraph.text);styles=this.paragraph.style;blockstyle=this.paragraph.blockstyle;priorblockstype=this.paragraph.blockstyle||{};this.paragraph={text:[],style:[],blockstyle:{},priorblockstyle:blockstyle};if(!fragments.join("").trim()){return;}
2745lines=this.splitFragmentsIntoLines(fragments,styles);line=void 0;maxLineHeight=void 0;defaultFontSize=12;fontToUnitRatio=defaultFontSize/this.pdf.internal.scaleFactor;paragraphspacing_before=(Math.max((blockstyle["margin-top"]||0)-(priorblockstype["margin-bottom"]||0),0)+(blockstyle["padding-top"]||0))*fontToUnitRatio;paragraphspacing_after=((blockstyle["margin-bottom"]||0)+(blockstyle["padding-bottom"]||0))*fontToUnitRatio;out=this.pdf.internal.write;i=void 0;l=void 0;this.y+=paragraphspacing_before;out("q","BT 0 g",this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td");var currentIndent=0;while(lines.length){line=lines.shift();maxLineHeight=0;i=0;l=line.length;while(i!==l){if(line[i][0].trim()){maxLineHeight=Math.max(maxLineHeight,line[i][1]["line-height"],line[i][1]["font-size"]);fontSize=line[i][1]["font-size"]*7;}
2746i++;}
2747var indentMove=0;if(line[0][1]["margin-left"]!==undefined&&line[0][1]["margin-left"]>0){wantedIndent=this.pdf.internal.getCoordinateString(line[0][1]["margin-left"]);indentMove=wantedIndent-currentIndent;currentIndent=wantedIndent;}
2748out(indentMove,(-1*defaultFontSize*maxLineHeight).toFixed(2),"Td");i=0;l=line.length;while(i!==l){if(line[i][0]){this.RenderTextFragment(line[i][0],line[i][1]);}
2749i++;}
2750this.y+=maxLineHeight*fontToUnitRatio;
2750if(this.executeWatchFunctions(line[0][1])&&lines.length>0){var localFragments=[];var localStyles=[];lines.forEach(function(localLine){var i=0;var l=localLine.length;while(i!==l){if(localLine[i][0]){localFragments.push(localLine[i][0]+' ');localStyles.push(localLine[i][1]);}
2751++i;}});lines=this.splitFragmentsIntoLines(PurgeWhiteSpace(localFragments),localStyles);out("ET","Q");out("q","BT 0 g",this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td");}}
2752if(cb&&typeof cb==="function"){cb.call(this,this.x-9,this.y-fontSize/2);}
2753out("ET","Q");return this.y+=paragraphspacing_after;};Renderer.prototype.setBlockBoundary=function(cb){return this.renderParagraph(cb);};Renderer.prototype.setBlockStyle=function(css){return this.paragraph.blockstyle=css;};Renderer.prototype.addText=function(text,css){this.paragraph.text.push(text);return this.paragraph.style.push(css);};FontNameDB={helvetica:"helvetica","sans-serif":"helvetica","times new roman":"times",serif:"times",times:"times",monospace:"courier",courier:"courier"};FontWeightMap={100:"normal",200:"normal",300:"normal",400:"normal",500:"bold",600:"bold",700:"bold",800:"bold",900:"bold",normal:"normal",bold:"bold",bolder:"bold",lighter:"normal"};FontStyleMap={normal:"normal",italic:"italic",oblique:"italic"};TextAlignMap={left:"left",right:"right",center:"center",justify:"justify"};FloatMap={none:'none',right:'right',left:'left'};ClearMap={none:'none',both:'both'};UnitedNumberMap={normal:1};jsPDFAPI.fromHTML=function(HTML,x,y,settings,callback,margins){"use strict";this.margins_doc=margins||{top:0,bottom:0};if(!settings)
2754settings={};if(!settings.elementHandlers)
2755settings.elementHandlers={};return process(this,HTML,isNaN(x)?4:x,isNaN(y)?4:y,settings,callback);};})(jsPDF.API);(function(jsPDFAPI){'use strict';var jsNamesObj,jsJsObj,text;jsPDFAPI.addJS=function(txt){text=txt;this.internal.events.subscribe('postPutResources',function(txt){jsNamesObj=this.internal.newObject();this.internal.write('<< /Names [(EmbeddedJS) '+(jsNamesObj+1)+' 0 R] >>','endobj');jsJsObj=this.internal.newObject();this.internal.write('<< /S /JavaScript /JS (',text,') >>','endobj');});this.internal.events.subscribe('putCatalog',function(){if(jsNamesObj!==undefined&&jsJsObj!==undefined){this.internal.write('/Names <</JavaScript '+jsNamesObj+' 0 R>>');}});return this;};}(jsPDF.API));(function(jsPDFAPI){'use strict'
2756var doesNotHavePngJS=function(){return typeof PNG!=='function'||typeof FlateStream!=='function';},canCompress=function(value){return value!==jsPDFAPI.image_compression.NONE&&hasCompressionJS();},hasCompressionJS=function(){var inst=typeof Deflater==='function';if(!inst)
2757throw new Error("requires deflate.js for compression")
2758return inst;},compressBytes=function(bytes,lineLength,colorsPerPixel,compression){var level=5,filter_method=filterUp;switch(compression){case jsPDFAPI.image_compression.FAST:level=3;filter_method=filterSub;break;case jsPDFAPI.image_compression.MEDIUM:level=6;filter_method=filterAverage;break;case jsPDFAPI.image_compression.SLOW:level=9;filter_method=filterPaeth;break;}
2759bytes=applyPngFilterMethod(bytes,lineLength,colorsPerPixel,filter_method);var header=new Uint8Array(createZlibHeader(level));var checksum=adler32(bytes);var deflate=new Deflater(level);var a=deflate.append(bytes);var cBytes=deflate.flush();var len=header.length+a.length+cBytes.length;var cmpd=new Uint8Array(len+4);cmpd.set(header);cmpd.set(a,header.length);cmpd.set(cBytes,header.length+a.length);cmpd[len++]=(checksum>>>24)&0xff;cmpd[len++]=(checksum>>>16)&0xff;cmpd[len++]=(checksum>>>8)&0xff;cmpd[len++]=checksum&0xff;return jsPDFAPI.arrayBufferToBinaryString(cmpd);},createZlibHeader=function(bytes,level){var cm=8;var cinfo=Math.LOG2E*Math.log(0x8000)-8;var cmf=(cinfo<<4)|cm;var hdr=cmf<<8;var flevel=Math.min(3,((level-1)&0xff)>>1);hdr|=(flevel<<6);hdr|=0;hdr+=31-(hdr%31);return[cmf,(hdr&0xff)&0xff];},adler32=function(array,param){var adler=1;var s1=adler&0xffff,s2=(adler>>>16)&0xffff;var len=array.length;var tlen;var i=0;while(len>0){tlen=len>param?param:len;len-=tlen;do{s1+=array[i++];s2+=s1;}while(--tlen);s1%=65521;s2%=65521;}
2760return((s2<<16)|s1)>>>0;},applyPngFilterMethod=function(bytes,lineLength,colorsPerPixel,filter_method){var lines=bytes.length/lineLength,result=new Uint8Array(bytes.length+lines),filter_methods=getFilterMethods(),i=0,line,prevLine,offset;for(;i<lines;i++){offset=i*lineLength;line=bytes.subarray(offset,offset+lineLength);if(filter_method){result.set(filter_method(line,colorsPerPixel,prevLine),offset+i);}else{var j=0,len=filter_methods.length,results=[];for(;j<len;j++)
2761results[j]=filter_methods[j](line,colorsPerPixel,prevLine);var ind=getIndexOfSmallestSum(results.concat());result.set(results[ind],offset+i);}
2762prevLine=line;}
2763return result;},filterNone=function(line,colorsPerPixel,prevLine){var result=Array.apply([],line);result.unshift(0);return result;},filterSub=function(line,colorsPerPixel,prevLine){var result=[],i=0,len=line.length,left;result[0]=1;for(;i<len;i++){left=line[i-colorsPerPixel]||0;result[i+1]=(line[i]-left+0x0100)&0xff;}
2764return result;},filterUp=function(line,colorsPerPixel,prevLine){var result=[],i=0,len=line.length,up;result[0]=2;for(;i<len;i++){up=prevLine&&prevLine[i]||0;result[i+1]=(line[i]-up+0x0100)&0xff;}
2765return result;},filterAverage=function(line,colorsPerPixel,prevLine){var result=[],i=0,len=line.length,left,up;result[0]=3;for(;i<len;i++){left=line[i-colorsPerPixel]||0;up=prevLine&&prevLine[i]||0;result[i+1]=(line[i]+0x0100-((left+up)>>>1))&0xff;}
2766return result;},filterPaeth=function(line,colorsPerPixel,prevLine){var result=[],i=0,len=line.length,left,up,upLeft,paeth;result[0]=4;for(;i<len;i++){left=line[i-colorsPerPixel]||0;up=prevLine&&prevLine[i]||0;upLeft=prevLine&&prevLine[i-colorsPerPixel]||0;paeth=paethPredictor(left,up,upLeft);result[i+1]=(line[i]-paeth+0x0100)&0xff;}
2767return result;},paethPredictor=function(left,up,upLeft){var p=left+up-upLeft,pLeft=Math.abs(p-left),pUp=Math.abs(p-up),pUpLeft=Math.abs(p-upLeft);return(pLeft<=pUp&&pLeft<=pUpLeft)?left:(pUp<=pUpLeft)?up:upLeft;},getFilterMethods=function(){return[filterNone,filterSub,filterUp,filterAverage,filterPaeth];},getIndexOfSmallestSum=function(arrays){var i=0,len=arrays.length,sum,min,ind;while(i<len){sum=absSum(arrays[i].slice(1));if(sum<min||!min){min=sum;ind=i;}
2768i++;}
2769return ind;},absSum=function(array){var i=0,len=array.length,sum=0;while(i<len)
2770sum+=Math.abs(array[i++]);return sum;},logImg=function(img){console.log("width: "+img.width);console.log("height: "+img.height);console.log("bits: "+img.bits);console.log("colorType: "+img.colorType);console.log("transparency:");console.log(img.transparency);console.log("text:");console.log(img.text);console.log("compressionMethod: "+img.compressionMethod);console.log("filterMethod: "+img.filterMethod);console.log("interlaceMethod: "+img.interlaceMethod);console.log("imgData:");console.log(img.imgData);console.log("palette:");console.log(img.palette);console.log("colors: "+img.colors);console.log("colorSpace: "+img.colorSpace);console.log("pixelBitlength: "+img.pixelBitlength);console.log("hasAlphaChannel: "+img.hasAlphaChannel);};jsPDFAPI.processPNG=function(imageData,imageIndex,alias,compression,dataAsBinaryString){'use strict'
2771var colorSpace=this.color_spaces.DEVICE_RGB,decode=this.decode.FLATE_DECODE,bpc=8,img,dp,trns,colors,pal,smask;if(this.isArrayBuffer(imageData))
2772imageData=new Uint8Array(imageData);if(this.isArrayBufferView(imageData)){if(doesNotHavePngJS())
2773throw new Error("PNG support requires png.js and zlib.js");img=new PNG(imageData);imageData=img.imgData;bpc=img.bits;colorSpace=img.colorSpace;colors=img.colors;if([4,6].indexOf(img.colorType)!==-1){if(img.bits===8){var pixelsArrayType=window['Uint'+img.pixelBitlength+'Array'],pixels=new pixelsArrayType(img.decodePixels().buffer),len=pixels.length,imgData=new Uint8Array(len*img.colors),alphaData=new Uint8Array(len),pDiff=img.pixelBitlength-img.bits,i=0,n=0,pixel,pbl;for(;i<len;i++){pixel=pixels[i];pbl=0;while(pbl<pDiff){imgData[n++]=(pixel>>>pbl)&0xff;pbl=pbl+img.bits;}
2774alphaData[i]=(pixel>>>pbl)&0xff;}}
2775if(img.bits===16){var pixels=new Uint32Array(img.decodePixels().buffer),len=pixels.length,imgData=new Uint8Array((len*(32/img.pixelBitlength))*img.colors),alphaData=new Uint8Array(len*(32/img.pixelBitlength)),hasColors=img.colors>1,i=0,n=0,a=0,pixel;while(i<len){pixel=pixels[i++];imgData[n++]=(pixel>>>0)&0xFF;if(hasColors){imgData[n++]=(pixel>>>16)&0xFF;pixel=pixels[i++];imgData[n++]=(pixel>>>0)&0xFF;}
2776alphaData[a++]=(pixel>>>16)&0xFF;}
2777bpc=8;}
2778if(canCompress(compression)){imageData=compressBytes(imgData,img.width*img.colors,img.colors,compression);smask=compressBytes(alphaData,img.width,1,compression);}else{imageData=imgData;smask=alphaData;decode=null;}}
2779if(img.colorType===3){colorSpace=this.color_spaces.INDEXED;pal=img.palette;if(img.transparency.indexed){var trans=img.transparency.indexed;var total=0,i=0,len=trans.length;for(;i<len;++i)
2780total+=trans[i];total=total/255;if(total===len-1&&trans.indexOf(0)!==-1){trns=[trans.indexOf(0)];}else if(total!==len){var pixels=img.decodePixels(),alphaData=new Uint8Array(pixels.length),i=0,len=pixels.length;for(;i<len;i++)
2781alphaData[i]=trans[pixels[i]];smask=compressBytes(alphaData,img.width,1);}}}
2782if(decode===this.decode.FLATE_DECODE)
2783dp='/Predictor 15 /Colors '+colors+' /BitsPerComponent '+bpc+' /Columns '+img.width;else
2784dp='/Colors '+colors+' /BitsPerComponent '+bpc+' /Columns '+img.width;if(this.isArrayBuffer(imageData)||this.isArrayBufferView(imageData))
2785imageData=this.arrayBufferToBinaryString(imageData);if(smask&&this.isArrayBuffer(smask)||this.isArrayBufferView(smask))
2786smask=this.arrayBufferToBinaryString(smask);return this.createImageInfo(imageData,img.width,img.height,colorSpace,bpc,decode,imageIndex,alias,dp,trns,pal,smask);}
2787throw new Error("Unsupported PNG image data, try using JPEG instead.");}})(jsPDF.API);(function(jsPDFAPI){'use strict'
2788jsPDFAPI.addSVG=function(svgtext,x,y,w,h){var undef
2789if(x===undef||y===undef){throw new Error("addSVG needs values for 'x' and 'y'");}
2790function InjectCSS(cssbody,document){var styletag=document.createElement('style');styletag.type='text/css';if(styletag.styleSheet){styletag.styleSheet.cssText=cssbody;}else{styletag.appendChild(document.createTextNode(cssbody));}
2791document.getElementsByTagName("head")[0].appendChild(styletag);}
2792function createWorkerNode(document){var frameID='childframe',frame=document.createElement('iframe')
2793InjectCSS('.jsPDF_sillysvg_iframe {display:none;position:absolute;}',document)
2794frame.name=frameID
2795frame.setAttribute("width",0)
2796frame.setAttribute("height",0)
2797frame.setAttribute("frameborder","0")
2798frame.setAttribute("scrolling","no")
2799frame.setAttribute("seamless","seamless")
2800frame.setAttribute("class","jsPDF_sillysvg_iframe")
2801document.body.appendChild(frame)
2802return frame}
2803function attachSVGToWorkerNode(svgtext,frame){var framedoc=(frame.contentWindow||frame.contentDocument).document
2804framedoc.write(svgtext)
2805framedoc.close()
2806return framedoc.getElementsByTagName('svg')[0]}
2807function convertPathToPDFLinesArgs(path){'use strict'
2808var x=parseFloat(path[1]),y=parseFloat(path[2]),vectors=[],position=3,len=path.length
2809while(position<len){if(path[position]==='c'){vectors.push([parseFloat(path[position+1]),parseFloat(path[position+2]),parseFloat(path[position+3]),parseFloat(path[position+4]),parseFloat(path[position+5]),parseFloat(path[position+6])])
2810position+=7}else if(path[position]==='l'){vectors.push([parseFloat(path[position+1]),parseFloat(path[position+2])])
2811position+=3}else{position+=1}}
2812return[x,y,vectors]}
2813var workernode=createWorkerNode(document),svgnode=attachSVGToWorkerNode(svgtext,workernode),scale=[1,1],svgw=parseFloat(svgnode.getAttribute('width')),svgh=parseFloat(svgnode.getAttribute('height'))
2814if(svgw&&svgh){if(w&&h){scale=[w/svgw,h/svgh]}
2815else if(w){scale=[w/svgw,w/svgw]}else if(h){scale=[h/svgh,h/svgh]}}
2816var i,l,tmp,linesargs,items=svgnode.childNodes
2817for(i=0,l=items.length;i<l;i++){tmp=items[i]
2818if(tmp.tagName&&tmp.tagName.toUpperCase()==='PATH'){linesargs=convertPathToPDFLinesArgs(tmp.getAttribute("d").split(' '))
2819linesargs[0]=linesargs[0]*scale[0]+x
2820linesargs[1]=linesargs[1]*scale[1]+y
2821this.lines.call(this,linesargs[2],linesargs[0],linesargs[1],scale)}}
2822return this}})(jsPDF.API);;(function(API){'use strict'
2823var getCharWidthsArray=API.getCharWidthsArray=function(text,options){if(!options){options={}}
2824var widths=options.widths?options.widths:this.internal.getFont().metadata.Unicode.widths,widthsFractionOf=widths.fof?widths.fof:1,kerning=options.kerning?options.kerning:this.internal.getFont().metadata.Unicode.kerning,kerningFractionOf=kerning.fof?kerning.fof:1
2825var i,l,char_code,prior_char_code=0,default_char_width=widths[0]||widthsFractionOf,output=[]
2826for(i=0,l=text.length;i<l;i++){char_code=text.charCodeAt(i)
2827output.push((widths[char_code]||default_char_width)/widthsFractionOf+
2828(kerning[char_code]&&kerning[char_code][prior_char_code]||0)/kerningFractionOf)
2829prior_char_code=char_code}
2830return output}
2831var getArraySum=function(array){var i=array.length,output=0
2832while(i){;i--;output+=array[i]}
2833return output}
2834var getStringUnitWidth=API.getStringUnitWidth=function(text,options){return getArraySum(getCharWidthsArray.call(this,text,options))}
2835var splitLongWord=function(word,widths_array,firstLineMaxLen,maxLen){var answer=[]
2836var i=0,l=word.length,workingLen=0
2837while(i!==l&&workingLen+widths_array[i]<firstLineMaxLen){workingLen+=widths_array[i];i++;}
2838answer.push(word.slice(0,i))
2839var startOfLine=i
2840workingLen=0
2841while(i!==l){if(workingLen+widths_array[i]>maxLen){answer.push(word.slice(startOfLine,i))
2842workingLen=0
2843startOfLine=i}
2844workingLen+=widths_array[i];i++;}
2845if(startOfLine!==i){answer.push(word.slice(startOfLine,i))}
2846return answer}
2847var splitParagraphIntoLines=function(text,maxlen,options){if(!options){options={}}
2848var line=[],lines=[line],line_length=options.textIndent||0,separator_length=0,current_word_length=0,word,widths_array,words=text.split(' '),spaceCharWidth=getCharWidthsArray(' ',options)[0],i,l,tmp,lineIndent
2849if(options.lineIndent===-1){lineIndent=words[0].length+2;}else{lineIndent=options.lineIndent||0;}
2850if(lineIndent){var pad=Array(lineIndent).join(" "),wrds=[];words.map(function(wrd){wrd=wrd.split(/\s*\n/);if(wrd.length>
28501){wrds=wrds.concat(wrd.map(function(wrd,idx){return(idx&&wrd.length?"\n":"")+wrd;}));}else{wrds.push(wrd[0]);}});words=wrds;lineIndent=getStringUnitWidth(pad,options);}
2851for(i=0,l=words.length;i<l;i++){var force=0;word=words[i]
2852if(lineIndent&&word[0]=="\n"){word=word.substr(1);force=1;}
2853widths_array=getCharWidthsArray(word,options)
2854current_word_length=getArraySum(widths_array)
2855if(line_length+separator_length+current_word_length>maxlen||force){if(current_word_length>maxlen){tmp=splitLongWord(word,widths_array,maxlen-(line_length+separator_length),maxlen)
2856line.push(tmp.shift())
2857line=[tmp.pop()]
2858while(tmp.length){lines.push([tmp.shift()])}
2859current_word_length=getArraySum(widths_array.slice(word.length-line[0].length))}else{line=[word]}
2860lines.push(line)
2861line_length=current_word_length+lineIndent
2862separator_length=spaceCharWidth}else{line.push(word)
2863line_length+=separator_length+current_word_length
2864separator_length=spaceCharWidth}}
2865if(lineIndent){var postProcess=function(ln,idx){return(idx?pad:'')+ln.join(" ");};}else{var postProcess=function(ln){return ln.join(" ")};}
2866return lines.map(postProcess);}
2867API.splitTextToSize=function(text,maxlen,options){'use strict'
2868if(!options){options={}}
2869var fsize=options.fontSize||this.internal.getFontSize(),newOptions=(function(options){var widths={0:1},kerning={}
2870if(!options.widths||!options.kerning){var f=this.internal.getFont(options.fontName,options.fontStyle),encoding='Unicode'
2871if(f.metadata[encoding]){return{widths:f.metadata[encoding].widths||widths,kerning:f.metadata[encoding].kerning||kerning}}}else{return{widths:options.widths,kerning:options.kerning}}
2872return{widths:widths,kerning:kerning}}).call(this,options)
2873var paragraphs
2874if(Array.isArray(text)){paragraphs=text;}else{paragraphs=text.split(/\r?\n/);}
2875var fontUnit_maxLen=1.0*this.internal.scaleFactor*maxlen/fsize
2876newOptions.textIndent=options.textIndent?options.textIndent*1.0*this.internal.scaleFactor/fsize:0
2877newOptions.lineIndent=options.lineIndent;var i,l,output=[]
2878for(i=0,l=paragraphs.length;i<l;i++){output=output.concat(splitParagraphIntoLines(paragraphs[i],fontUnit_maxLen,newOptions))}
2879return output}})(jsPDF.API);;(function(API){'use strict'
2880var uncompress=function(data){var decoded='0123456789abcdef',encoded='klmnopqrstuvwxyz',mapping={}
2881for(var i=0;i<encoded.length;i++){mapping[encoded[i]]=decoded[i]}
2882var undef,output={},sign=1,stringparts,activeobject=output,parentchain=[],parent_key_pair,keyparts='',valueparts='',key,datalen=data.length-1,ch
2883i=1
2884while(i!=datalen){ch=data[i]
2885i+=1
2886if(ch=="'"){if(stringparts){key=stringparts.join('')
2887stringparts=undef}else{stringparts=[]}}else if(stringparts){stringparts.push(ch)}else if(ch=='{'){parentchain.push([activeobject,key])
2888activeobject={}
2889key=undef}else if(ch=='}'){parent_key_pair=parentchain.pop()
2890parent_key_pair[0][parent_key_pair[1]]=activeobject
2891key=undef
2892activeobject=parent_key_pair[0]}else if(ch=='-'){sign=-1}else{if(key===undef){if(mapping.hasOwnProperty(ch)){keyparts+=mapping[ch]
2893key=parseInt(keyparts,16)*sign
2894sign=+1
2895keyparts=''}else{keyparts+=ch}}else{if(mapping.hasOwnProperty(ch)){valueparts+=mapping[ch]
2896activeobject[key]=parseInt(valueparts,16)*sign
2897sign=+1
2898key=undef
2899valueparts=''}else{valueparts+=ch}}}}
2900return output}
2901var encodingBlock={'codePages':['WinAnsiEncoding'],'WinAnsiEncoding':uncompress("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},encodings={'Unicode':{'Courier':encodingBlock,'Courier-Bold':encodingBlock,'Courier-BoldOblique':encodingBlock,'Courier-Oblique':encodingBlock,'Helvetica':encodingBlock,'Helvetica-Bold':encodingBlock,'Helvetica-BoldOblique':encodingBlock,'Helvetica-Oblique':encodingBlock,'Times-Roman':encodingBlock,'Times-Bold':encodingBlock,'Times-BoldItalic':encodingBlock,'Times-Italic':encodingBlock}},fontMetrics={'Unicode':{'Courier-Oblique':uncompress("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),'Times-BoldItalic':uncompress("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3me
2901k3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),'Helvetica-Bold':uncompress("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4y
2901dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),'Courier':uncompress("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),'Courier-BoldOblique':uncompress("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),'Times-Bold':uncompress("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),'Helvetica':uncompress("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4y
2901dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),'Helvetica-BoldOblique':uncompress("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4y
2901dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),'Courier-Bold':uncompress("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),'Times-Italic':uncompress("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}
2901fv{17su5tu5qs}fw{17su5tu5qs}}}"),'Times-Roman':uncompress("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),'Helvetica-Oblique':uncompress("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4y
2901dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};API.events.push(['addFonts',function(fontManagementObjects){var font,fontID,metrics,unicode_section,encoding='Unicode',encodingBlock
2902for(fontID in fontManagementObjects.fonts){if(fontManagementObjects.fonts.hasOwnProperty(fontID)){font=fontManagementObjects.fonts[fontID]
2903metrics=fontMetrics[encoding][font.PostScriptName]
2904if(metrics){if(font.metadata[encoding]){unicode_section=font.metadata[encoding]}else{unicode_section=font.metadata[encoding]={}}
2905unicode_section.widths=metrics.widths
2906unicode_section.kerning=metrics.kerning}
2907encodingBlock=encodings[encoding][font.PostScriptName]
2908if(encodingBlock){if(font.metadata[encoding]){unicode_section=font.metadata[encoding]}else{unicode_section=font.metadata[encoding]={}}
2909unicode_section.encoding=encodingBlock
2910if(encodingBlock.codePages&&encodingBlock.codePages.length){font.encoding=encodingBlock.codePages[0]}}}}}])})(jsPDF.API);(function(jsPDFAPI){'use strict';jsPDFAPI.putTotalPages=function(pageExpression){'use strict';var replaceExpression=new RegExp(pageExpression,'g');for(var n=1;n<=this.internal.getNumberOfPages();n++){for(var i=0;i<this.internal.pages[n].length;i++)
2911this.internal.pages[n][i]=this.internal.pages[n][i].replace(replaceExpression,this.internal.getNumberOfPages());}
2912return this;};})(jsPDF.API);
2913/*! @source http://purl.eligrey.com/github/Blob.js/blob/master/Blob.js */
2914(function(view){"use strict";view.URL=view.URL||view.webkitURL;if(view.Blob&&view.URL){try{new Blob;return;}catch(e){}}
2915var BlobBuilder=view.BlobBuilder||view.WebKitBlobBuilder||view.MozBlobBuilder||(function(view){var
2916get_class=function(object){return Object.prototype.toString.call(object).match(/^\[object\s(.*)\]$/)[1];},FakeBlobBuilder=function BlobBuilder(){this.data=[];},FakeBlob=function Blob(data,type,encoding){this.data=data;this.size=data.length;this.type=type;this.encoding=encoding;},FBB_proto=FakeBlobBuilder.prototype,FB_proto=FakeBlob.prototype,FileReaderSync=view.FileReaderSync,FileException=function(type){this.code=this[this.name=type];},file_ex_codes=("NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR "
2917+"NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR").split(" "),file_ex_code=file_ex_codes.length,real_URL=view.URL||view.webkitURL||view,real_create_object_URL=real_URL.createObjectURL,real_revoke_object_URL=real_URL.revokeObjectURL,URL=real_URL,btoa=view.btoa,atob=view.atob,ArrayBuffer=view.ArrayBuffer,Uint8Array=view.Uint8Array,origin=/^[\w-]+:\/*\[?[\w\.:-]+\]?(?::[0-9]+)?/;FakeBlob.fake=FB_proto.fake=true;while(file_ex_code--){FileException.prototype[file_ex_codes[file_ex_code]]=file_ex_code+1;}
2918if(!real_URL.createObjectURL){URL=view.URL=function(uri){var
2919uri_info=document.createElementNS("http://www.w3.org/1999/xhtml","a"),uri_origin;uri_info.href=uri;if(!("origin"in uri_info)){if(uri_info.protocol.toLowerCase()==="data:"){uri_info.origin=null;}else{uri_origin=uri.match(origin);uri_info.origin=uri_origin&&uri_origin[1];}}
2920return uri_info;};}
2921URL.createObjectURL=function(blob){var
2922type=blob.type,data_URI_header;if(type===null){type="application/octet-stream";}
2923if(blob instanceof FakeBlob){data_URI_header="data:"+type;if(blob.encoding==="base64"){return data_URI_header+";base64,"+blob.data;}else if(blob.encoding==="URI"){return data_URI_header+","+decodeURIComponent(blob.data);}if(btoa){return data_URI_header+";base64,"+btoa(blob.data);}else{return data_URI_header+","+encodeURIComponent(blob.data);}}else if(real_create_object_URL){return real_create_object_URL.call(real_URL,blob);}};URL.revokeObjectURL=function(object_URL){if(object_URL.substring(0,5)!=="data:"&&real_revoke_object_URL){real_revoke_object_URL.call(real_URL,object_URL);}};FBB_proto.append=function(data){var bb=this.data;if(Uint8Array&&(data instanceof ArrayBuffer||data instanceof Uint8Array)){var
2924str="",buf=new Uint8Array(data),i=0,buf_len=buf.length;for(;i<buf_len;i++){str+=String.fromCharCode(buf[i]);}
2925bb.push(str);}else if(get_class(data)==="Blob"||get_class(data)==="File"){if(FileReaderSync){var fr=new FileReaderSync;bb.push(fr.readAsBinaryString(data));}else{throw new FileException("NOT_READABLE_ERR");}}else if(data instanceof FakeBlob){if(data.encoding==="base64"&&atob){bb.push(atob(data.data));}else if(data.encoding==="URI"){bb.push(decodeURIComponent(data.data));}else if(data.encoding==="raw"){bb.push(data.data);}}
2925else{if(typeof data!=="string"){data+="";}
2926bb.push(unescape(encodeURIComponent(data)));}};FBB_proto.getBlob=function(type){if(!arguments.length){type=null;}
2927return new FakeBlob(this.data.join(""),type,"raw");};FBB_proto.toString=function(){return"[object BlobBuilder]";};FB_proto.slice=function(start,end,type){var args=arguments.length;if(args<3){type=null;}
2928return new FakeBlob(this.data.slice(start,args>1?end:this.data.length),type,this.encoding);};FB_proto.toString=function(){return"[object Blob]";};FB_proto.close=function(){this.size=0;delete this.data;};return FakeBlobBuilder;}(view));view.Blob=function(blobParts,options){var type=options?(options.type||""):"";var builder=new BlobBuilder();if(blobParts){for(var i=0,len=blobParts.length;i<len;i++){builder.append(blobParts[i]);}}
2929return builder.getBlob(type);};}(typeof self!=="undefined"&&self||typeof window!=="undefined"&&window||this.content||this));
2930/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */
2931var saveAs=saveAs||(typeof navigator!=="undefined"&&navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob.bind(navigator))||(function(view){"use strict";if(typeof navigator!=="undefined"&&/MSIE [1-9]\./.test(navigator.userAgent)){return;}
2932var
2933doc=view.document,get_URL=function(){return view.URL||view.webkitURL||view;},save_link=doc.createElementNS("http://www.w3.org/1999/xhtml","a"),can_use_save_link="download"in save_link,click=function(node){var event=doc.createEvent("MouseEvents");event.initMouseEvent("click",true,false,view,0,0,0,0,0,false,false,false,false,0,null);node.dispatchEvent(event);},webkit_req_fs=view.webkitRequestFileSystem,req_fs=view.requestFileSystem||webkit_req_fs||view.mozRequestFileSystem,throw_outside=function(ex){(view.setImmediate||view.setTimeout)(function(){throw ex;},0);},force_saveable_type="application/octet-stream",fs_min_size=0,arbitrary_revoke_timeout=10,revoke=function(file){var revoker=function(){if(typeof file==="string"){get_URL().revokeObjectURL(file);}else{file.remove();}};if(view.chrome){revoker();}else{setTimeout(revoker,arbitrary_revoke_timeout);}},dispatch=function(filesaver,event_types,event){event_types=[].concat(event_types);var i=event_types.length;while(i--){var listener=filesaver["on"+event_types[i]];if(typeof listener==="function"){try{listener.call(filesaver,event||filesaver);}catch(ex){throw_outside(ex);}}}},FileSaver=function(blob,name){var
2934filesaver=this,type=blob.type,blob_changed=false,object_url,target_view,dispatch_all=function(){dispatch(filesaver,"writestart progress write writeend".split(" "));},fs_error=function(){if(blob_changed||!object_url){object_url=get_URL().createObjectURL(blob);}
2935if(target_view){target_view.location.href=object_url;}else{var new_tab=view.open(object_url,"_blank");if(new_tab==undefined&&typeof safari!=="undefined"){view.location.href=object_url}}
2936filesaver.readyState=filesaver.DONE;dispatch_all();revoke(object_url);},abortable=function(func){return function(){if(filesaver.readyState!==filesaver.DONE){return func.apply(this,arguments);}};},create_if_not_found={create:true,exclusive:false},slice;filesaver.readyState=filesaver.INIT;if(!name){name="download";}
2937if(can_use_save_link){object_url=get_URL().createObjectURL(blob);save_link.href=object_url;save_link.download=name;click(save_link);filesaver.readyState=filesaver.DONE;dispatch_all();revoke(object_url);return;}
2938if(view.chrome&&type&&type!==force_saveable_type){slice=blob.slice||blob.webkitSlice;blob=slice.call(blob,0,blob.size,force_saveable_type);blob_changed=true;}
2939if(webkit_req_fs&&name!=="download"){name+=".download";}
2940if(type===force_saveable_type||webkit_req_fs){target_view=view;}
2941if(!req_fs){fs_error();return;}
2942fs_min_size+=blob.size;req_fs(view.TEMPORARY,fs_min_size,abortable(function(fs){fs.root.getDirectory("saved",create_if_not_found,abortable(function(dir){var save=function(){dir.getFile(name,create_if_not_found,abortable(function(file){file.createWriter(abortable(function(writer){writer.onwriteend=function(event){target_view.location.href=file.toURL();filesaver.readyState=filesaver.DONE;dispatch(filesaver,"writeend",event);revoke(file);};writer.onerror=function(){var error=writer.error;if(error.code!==error.ABORT_ERR){fs_error();}};"writestart progress write abort".split(" ").forEach(function(event){writer["on"+event]=filesaver["on"+event];});writer.write(blob);filesaver.abort=function(){writer.abort();filesaver.readyState=filesaver.DONE;};filesaver.readyState=filesaver.WRITING;}),fs_error);}),fs_error);};dir.getFile(name,{create:false},abortable(function(file){file.remove();save();}),abortable(function(ex){if(ex.code===ex.NOT_FOUND_ERR){save();}else{fs_error();}}));}),fs_error);}),fs_error);},FS_proto=FileSaver.prototype,saveAs=function(blob,name){return new FileSaver(blob,name);};FS_proto.abort=function(){var filesaver=this;filesaver.readyState=filesaver.DONE;dispatch(filesaver,"abort");};FS_proto.readyState=FS_proto.INIT=0;FS_proto.WRITING=1;FS_proto.DONE=2;FS_proto.error=FS_proto.onwritestart=FS_proto.onprogress=FS_proto.onwrite=FS_proto.onabort=FS_proto.onerror=FS_proto.onwriteend=null;return saveAs;}(typeof self!=="undefined"&&self||typeof window!=="undefined"&&window||this.content));if(typeof module!=="undefined"&&module!==null){module.exports=saveAs;}else if((typeof define!=="undefined"&&0)){define([],function(){return saveAs;});}
2943void function(global,callback){if(typeof module==='object'){module.exports=callback();}else if(0==='function'){define(callback);}else{global.adler32cs=callback();}}(jsPDF,function(){var _hasArrayBuffer=typeof ArrayBuffer==='function'&&typeof Uint8Array==='function';var _Buffer=null,_isBuffer=(function(){if(!_hasArrayBuffer)
2944return function _isBuffer(){return false};try{var buffer=require('buffer');if(typeof buffer.Buffer==='function')
2945_Buffer=buffer.Buffer;}catch(error){}
2946return function _isBuffer(value){return value instanceof ArrayBuffer||_Buffer!==null&&value instanceof _Buffer;};}());var _utf8ToBinary=(function(){if(_Buffer!==null){return function _utf8ToBinary(utf8String){return new _Buffer(utf8Str
2946ing,'utf8').toString('binary');};}else{return function _utf8ToBinary(utf8String){return unescape(encodeURIComponent(utf8String));};}}());var MOD=65521;var _update=function _update(checksum,binaryString){var a=checksum&0xFFFF,b=checksum>>>16;for(var i=0,length=binaryString.length;i<length;i++){a=(a+(binaryString.charCodeAt(i)&0xFF))%MOD;b=(b+a)%MOD;}
2947return(b<<16|a)>>>0;};var _updateUint8Array=function _updateUint8Array(checksum,uint8Array){var a=checksum&0xFFFF,b=checksum>>>16;for(var i=0,length=uint8Array.length,x;i<length;i++){a=(a+uint8Array[i])%MOD;b=(b+a)%MOD;}
2948return(b<<16|a)>>>0};var exports={};var Adler32=exports.Adler32=(function(){var ctor=function Adler32(checksum){if(!(this instanceof ctor)){throw new TypeError('Constructor cannot called be as a function.');}
2949if(!isFinite(checksum=checksum==null?1:+checksum)){throw new Error('First arguments needs to be a finite number.');}
2950this.checksum=checksum>>>0;};var proto=ctor.prototype={};proto.constructor=ctor;ctor.from=function(from){from.prototype=proto;return from;}(function from(binaryString){if(!(this instanceof ctor)){throw new TypeError('Constructor cannot called be as a function.');}
2951if(binaryString==null)
2952throw new Error('First argument needs to be a string.');this.checksum=_update(1,binaryString.toString());});ctor.fromUtf8=function(fromUtf8){fromUtf8.prototype=proto;return fromUtf8;}(function fromUtf8(utf8String){if(!(this instanceof ctor)){throw new TypeError('Constructor cannot called be as a function.');}
2953if(utf8String==null)
2954throw new Error('First argument needs to be a string.');var binaryString=_utf8ToBinary(utf8String.toString());this.checksum=_update(1,binaryString);});if(_hasArrayBuffer){ctor.fromBuffer=function(fromBuffer){fromBuffer.prototype=proto;return fromBuffer;}(function fromBuffer(buffer){if(!(this instanceof ctor)){throw new TypeError('Constructor cannot called be as a function.');}
2955if(!_isBuffer(buffer))
2956throw new Error('First argument needs to be ArrayBuffer.');var array=new Uint8Array(buffer);return this.checksum=_updateUint8Array(1,array);});}
2957proto.update=function update(binaryString){if(binaryString==null)
2958throw new Error('First argument needs to be a string.');binaryString=binaryString.toString();return this.checksum=_update(this.checksum,binaryString);};proto.updateUtf8=function updateUtf8(utf8String){if(utf8String==null)
2959throw new Error('First argument needs to be a string.');var binaryString=_utf8ToBinary(utf8String.toString());return this.checksum=_update(this.checksum,binaryString);};if(_hasArrayBuffer){proto.updateBuffer=function updateBuffer(buffer){if(!_isBuffer(buffer))
2960throw new Error('First argument needs to be ArrayBuffer.');var array=new Uint8Array(buffer);return this.checksum=_updateUint8Array(this.checksum,array);};}
2961proto.clone=function clone(){return new Adler32(this.checksum);};return ctor;}());exports.from=function from(binaryString){if(binaryString==null)
2962throw new Error('First argument needs to be a string.');return _update(1,binaryString.toString());};exports.fromUtf8=function fromUtf8(utf8String){if(utf8String==null)
2963throw new Error('First argument needs to be a string.');var binaryString=_utf8ToBinary(utf8String.toString());return _update(1,binaryString);};if(_hasArrayBuffer){exports.fromBuffer=function fromBuffer(buffer){if(!_isBuffer(buffer))
2964throw new Error('First argument need to be ArrayBuffer.');var array=new Uint8Array(buffer);return _updateUint8Array(1,array);};}
2965return exports;});var Deflater=(function(obj){var MAX_BITS=15;var D_CODES=30;var BL_CODES=19;var LENGTH_CODES=29;var LITERALS=256;var L_CODES=(LITERALS+1+LENGTH_CODES);var HEAP_SIZE=(2*L_CODES+1);var END_BLOCK=256;var MAX_BL_BITS=7;var REP_3_6=16;var REPZ_3_10=17;var REPZ_11_138=18;var Buf_size=8*2;var Z_DEFAULT_COMPRESSION=-1;var Z_FILTERED=1;var Z_HUFFMAN_ONLY=2;var Z_DEFAULT_STRATEGY=0;var Z_NO_FLUSH=0;var Z_PARTIAL_FLUSH=1;var Z_FULL_FLUSH=3;var Z_FINISH=4;var Z_OK=0;var Z_STREAM_END=1;var Z_NEED_DICT=2;var Z_STREAM_ERROR=-2;var Z_DATA_ERROR=-3;var Z_BUF_ERROR=-5;var _dist_code=[0,1,2,3,4,4,5,5,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,0,0,16,17,18,18,19,19,20,20,20,20,21,21,21,21,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29];function Tree(){var that=this;
2965function gen_bitlen(s){var tree=that.dyn_tree;var stree=that.stat_desc.static_tree;var extra=that.stat_desc.extra_bits;var base=that.stat_desc.extra_base;var max_length=that.stat_desc.max_length;var h;var n,m;var bits;var xbits;var f;var overflow=0;for(bits=0;bits<=MAX_BITS;bits++)
2966s.bl_count[bits]=0;tree[s.heap[s.heap_max]*2+1]=0;for(h=s.heap_max+1;h<HEAP_SIZE;h++){n=s.heap[h];bits=tree[tree[n*2+1]*2+1]+1;if(bits>max_length){bits=max_length;overflow++;}
2967tree[n*2+1]=bits;if(n>that.max_code)
2968continue;s.bl_count[bits]++;xbits=0;if(n>=base)
2969xbits=extra[n-base];f=tree[n*2];s.opt_len+=f*(bits+xbits);if(stree)
2970s.static_len+=f*(stree[n*2+1]+xbits);}
2971if(overflow===0)
2972return;do{bits=max_length-1;while(s.bl_count[bits]===0)
2973bits--;s.bl_count[bits]--;s.bl_count[bits+1]+=2;s.bl_count[max_length]--;overflow-=2;}while(overflow>0);for(bits=max_length;bits!==0;bits--){n=s.bl_count[bits];while(n!==0){m=s.heap[--h];if(m>that.max_code)
2974continue;if(tree[m*2+1]!=bits){s.opt_len+=(bits-tree[m*2+1])*tree[m*2];tree[m*2+1]=bits;}
2975n--;}}}
2976function bi_reverse(code,len){var res=0;do{res|=code&1;code>>>=1;res<<=1;}while(--len>0);return res>>>1;}
2977function gen_codes(tree,max_code,bl_count){var next_code=[];var code=0;var bits;var n;var len;for(bits=1;bits<=MAX_BITS;bits++){next_code[bits]=code=((code+bl_count[bits-1])<<1);}
2978for(n=0;n<=max_code;n++){len=tree[n*2+1];if(len===0)
2979continue;tree[n*2]=bi_reverse(next_code[len]++,len);}}
2980that.build_tree=function(s){var tree=that.dyn_tree;var stree=that.stat_desc.static_tree;var elems=that.stat_desc.elems;var n,m;var max_code=-1;var node;s.heap_len=0;s.heap_max=HEAP_SIZE;for(n=0;n<elems;n++){if(tree[n*2]!==0){s.heap[++s.heap_len]=max_code=n;s.depth[n]=0;}else{tree[n*2+1]=0;}}
2981while(s.heap_len<2){node=s.heap[++s.heap_len]=max_code<2?++max_code:0;tree[node*2]=1;s.depth[node]=0;s.opt_len--;if(stree)
2982s.static_len-=stree[node*2+1];}
2983that.max_code=max_code;for(n=Math.floor(s.heap_len/2);n>=1;n--)
2984s.pqdownheap(tree,n);node=elems;do{n=s.heap[1];s.heap[1]=s.heap[s.heap_len--];s.pqdownheap(tree,1);m=s.heap[1];s.heap[--s.heap_max]=n;s.heap[--s.heap_max]=m;tree[node*2]=(tree[n*2]+tree[m*2]);s.depth[node]=Math.max(s.depth[n],s.depth[m])+1;tree[n*2+1]=tree[m*2+1]=node;s.heap[1]=node++;s.pqdownheap(tree,1);}while(s.heap_len>=2);s.heap[--s.heap_max]=s.heap[1];gen_bitlen(s);gen_codes(tree,that.max_code,s.bl_count);};}
2985Tree._length_code=[0,1,2,3,4,5,6,7,8,8,9,9,10,10,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28];Tree.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0];Tree.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576];Tree.d_code=function(dist){return((dist)<256?_dist_code[dist]:_dist_code[256+((dist)>>>7)]);};Tree.extra_lbits=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0];Tree.extra_dbits=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];Tree.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7];Tree.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function StaticTree(static_tree,extra_bits,extra_base,elems,max_length){var that=this;that.static_tree=static_tree;that.extra_bits=extra_bits;that.extra_base=extra_base;that.elems=elems;that.max_length=max_length;}
2986StaticTree.static_ltree=[12,8,140,8,76,8,204,8,44,8,172,8,108,8,236,8,28,8,156,8,92,8,220,8,60,8,188,8,124,8,252,8,2,8,130,8,66,8,194,8,34,8,162,8,98,8,226,8,18,8,146,8,82,8,210,8,50,8,178,8,114,8,242,8,10,8,138,8,74,8,202,8,42,8,170,8,106,8,234,8,26,8,154,8,90,8,218,8,58,8,186,8,122,8,250,8,6,8,134,8,70,8,198,8,38,8,166,8,102,8,230,8,22,8,150,8,86,8,214,8,54,8,182,8,118,8,246,8,14,8,142,8,78,8,206,8,46,8,174,8,110,8,238,8,30,8,158,8,94,8,222,8,62,8,190,8,126,8,254,8,1,8,129,8,65,8,193,8,33,8,161,8,97,8,225,8,17,8,145,8,81,8,209,8,49,8,177,8,113,8,241,8,9,8,137,8,73,8,201,8,41,8,169,8,105,8,233,8,25,8,153,8,89,8,217,8,57,8,185,8,121,8,249,8,5,8,133,8,69,8,197,8,37,8,165,8,101,8,229,8,21,8,149,8,85,8,213,8,53,8,181,8,117,8,245,8,13,8,141,8,77,8,205,8,45,8,173,8,109,8,237,8,29,8,157,8,93,8,221,8,61,8,189,8,125,8,253,8,19,9,275,9,147,9,403,9,83,9,339,9,211,9,467,9,51,9,307,9,179,9,435,9,115,9,371,9,243,9,499,9,11,9,267,9,139,9,395,9,75,9,331,9,203,9,459,9,43,9,299,9,171,9,427,9,107,9,363,9,235,9,491,9,27,9,283,9,155,9,411,9,91,9,347,9,219,9,475,9,59,9,315,9,187,9,443,9,123,9,379,9,251,9,507,9,7,9,263,9,135,9,391,9,71,9,327,9,199,9,455,9,39,9,295,9,167,9,423,9,103,9,359,9,231,9,487,9,23,9,279,9,151,9,407,9,87,9,343,9,215,9,471,9,55,9,311,9,183,9,439,9,119,9,375,9,247,9,503,9,15,9,271,9,143,9,399,9,79,9,335,9,207,9,463,9,47,9,303,9,175,9,431,9,111,9,3
298667,9,239,9,495,9,31,9,287,9,159,9,415,9,95,9,351,9,223,9,479,9,63,9,319,9,191,9,447,9,127,9,383,9,255,9,511,9,0,7,64,7,32,7,96,7,16,7,80,7,48,7,112,7,8,7,72,7,40,7,104,7,24,7,88,7,56,7,120,7,4,7,68,7,36,7,100,7,20,7,84,7,52,7,116,7,3,8,131,8,67,8,195,8,35,8,163,8,99,8,227,8];StaticTree.static_dtree=[0,5,16,5,8,5,24,5,4,5,20,5,12,5,28,5,2,5,18,5,10,5,26,5,6,5,22,5,14,5,30,5,1,5,17,5,9,5,25,5,5,5,21,5,13,5,29,5,3,5,19,5,11,5,27,5,7,5,23,5];StaticTree.static_l_desc=new StaticTree(StaticTree.static_ltree,Tree.extra_lbits,LITERALS+1,L_CODES,MAX_BITS);StaticTree.static_d_desc=new StaticTree(StaticTree.static_dtree,Tree.extra_dbits,0,D_CODES,MAX_BITS);StaticTree.static_bl_desc=new StaticTree(null,Tree.extra_blbits,0,BL_CODES,MAX_BL_BITS);var MAX_MEM_LEVEL=9;var DEF_MEM_LEVEL=8;function Config(good_length,max_lazy,nice_length,max_chain,func){var that=this;that.good_length=good_length;that.max_lazy=max_lazy;that.nice_length=nice_length;that.max_chain=max_chain;that.func=func;}
2987var STORED=0;var FAST=1;var SLOW=2;var config_table=[new Config(0,0,0,0,STORED),new Config(4,4,8,4,FAST),new Config(4,5,16,8,FAST),new Config(4,6,32,32,FAST),new Config(4,4,16,16,SLOW),new Config(8,16,32,32,SLOW),new Config(8,16,128,128,SLOW),new Config(8,32,128,256,SLOW),new Config(32,128,258,1024,SLOW),new Config(32,258,258,4096,SLOW)];var z_errmsg=["need dictionary","stream end","","","stream error","data error","","buffer error","",""];var NeedMore=0;var BlockDone=1;var FinishStarted=2;var FinishDone=3;var PRESET_DICT=0x20;var INIT_STATE=42;var BUSY_STATE=113;var FINISH_STATE=666;var Z_DEFLATED=8;var STORED_BLOCK=0;var STATIC_TREES=1;var DYN_TREES=2;var MIN_MATCH=3;var MAX_MATCH=258;var MIN_LOOKAHEAD=(MAX_MATCH+MIN_MATCH+1);function smaller(tree,n,m,depth){var tn2=tree[n*2];var tm2=tree[m*2];return(tn2<tm2||(tn2==tm2&&depth[n]<=depth[m]));}
2988function Deflate(){var that=this;var strm;var status;var pending_buf_size;var method;var last_flush;var w_size;var w_bits;var w_mask;var window;var window_size;var prev;var head;var ins_h;var hash_size;var hash_bits;var hash_mask;var hash_shift;var block_start;var match_length;var prev_match;var match_available;var strstart;var match_start;var lookahead;var prev_length;var max_chain_length;var max_lazy_match;var level;var strategy;var good_match;var nice_match;var dyn_ltree;var dyn_dtree;var bl_tree;var l_desc=new Tree();var d_desc=new Tree();var bl_desc=new Tree();that.depth=[];var l_buf;var lit_bufsize;var last_lit;var d_buf;var matches;var last_eob_len;var bi_buf;var bi_valid;that.bl_count=[];that.heap=[];dyn_ltree=[];dyn_dtree=[];bl_tree=[];function lm_init(){var i;window_size=2*w_size;head[hash_size-1]=0;for(i=0;i<hash_size-1;i++){head[i]=0;}
2989max_lazy_match=config_table[level].max_lazy;good_match=config_table[level].good_length;nice_match=config_table[level].nice_length;max_chain_length=config_table[level].max_chain;strstart=0;block_start=0;lookahead=0;match_length=prev_length=MIN_MATCH-1;match_available=0;ins_h=0;}
2990function init_block(){var i;for(i=0;i<L_CODES;i++)
2991dyn_ltree[i*2]=0;for(i=0;i<D_CODES;i++)
2992dyn_dtree[i*2]=0;for(i=0;i<BL_CODES;i++)
2993bl_tree[i*2]=0;dyn_ltree[END_BLOCK*2]=1;that.opt_len=that.static_len=0;last_lit=matches=0;}
2994function tr_init(){l_desc.dyn_tree=dyn_ltree;l_desc.stat_desc=StaticTree.static_l_desc;d_desc.dyn_tree=dyn_dtree;d_desc.stat_desc=StaticTree.static_d_desc;bl_desc.dyn_tree=bl_tree;bl_desc.stat_desc=StaticTree.static_bl_desc;bi_buf=0;bi_valid=0;last_eob_len=8;init_block();}
2995that.pqdownheap=function(tree,k){var heap=that.heap;var v=heap[k];var j=k<<1;
2995while(j<=that.heap_len){if(j<that.heap_len&&smaller(tree,heap[j+1],heap[j],that.depth)){j++;}
2996if(smaller(tree,v,heap[j],that.depth))
2997break;heap[k]=heap[j];k=j;j<<=1;}
2998heap[k]=v;};function scan_tree(tree,max_code){var n;var prevlen=-1;var curlen;var nextlen=tree[0*2+1];var count=0;var max_count=7;var min_count=4;if(nextlen===0){max_count=138;min_count=3;}
2999tree[(max_code+1)*2+1]=0xffff;for(n=0;n<=max_code;n++){curlen=nextlen;nextlen=tree[(n+1)*2+1];if(++count<max_count&&curlen==nextlen){continue;}else if(count<min_count){bl_tree[curlen*2]+=count;}else if(curlen!==0){if(curlen!=prevlen)
3000bl_tree[curlen*2]++;bl_tree[REP_3_6*2]++;}else if(count<=10){bl_tree[REPZ_3_10*2]++;}else{bl_tree[REPZ_11_138*2]++;}
3001count=0;prevlen=curlen;if(nextlen===0){max_count=138;min_count=3;}else if(curlen==nextlen){max_count=6;min_count=3;}else{max_count=7;min_count=4;}}}
3002function build_bl_tree(){var max_blindex;scan_tree(dyn_ltree,l_desc.max_code);scan_tree(dyn_dtree,d_desc.max_code);bl_desc.build_tree(that);for(max_blindex=BL_CODES-1;max_blindex>=3;max_blindex--){if(bl_tree[Tree.bl_order[max_blindex]*2+1]!==0)
3003break;}
3004that.opt_len+=3*(max_blindex+1)+5+5+4;return max_blindex;}
3005function put_byte(p){that.pending_buf[that.pending++]=p;}
3006function put_short(w){put_byte(w&0xff);put_byte((w>>>8)&0xff);}
3007function putShortMSB(b){put_byte((b>>8)&0xff);put_byte((b&0xff)&0xff);}
3008function send_bits(value,length){var val,len=length;if(bi_valid>Buf_size-len){val=value;bi_buf|=((val<<bi_valid)&0xffff);put_short(bi_buf);bi_buf=val>>>(Buf_size-bi_valid);bi_valid+=len-Buf_size;}else{bi_buf|=(((value)<<bi_valid)&0xffff);bi_valid+=len;}}
3009function send_code(c,tree){var c2=c*2;send_bits(tree[c2]&0xffff,tree[c2+1]&0xffff);}
3010function send_tree(tree,max_code){var n;var prevlen=-1;var curlen;var nextlen=tree[0*2+1];var count=0;var max_count=7;var min_count=4;if(nextlen===0){max_count=138;min_count=3;}
3011for(n=0;n<=max_code;n++){curlen=nextlen;nextlen=tree[(n+1)*2+1];if(++count<max_count&&curlen==nextlen){continue;}else if(count<min_count){do{send_code(curlen,bl_tree);}while(--count!==0);}else if(curlen!==0){if(curlen!=prevlen){send_code(curlen,bl_tree);count--;}
3012send_code(REP_3_6,bl_tree);send_bits(count-3,2);}else if(count<=10){send_code(REPZ_3_10,bl_tree);send_bits(count-3,3);}else{send_code(REPZ_11_138,bl_tree);send_bits(count-11,7);}
3013count=0;prevlen=curlen;if(nextlen===0){max_count=138;min_count=3;}else if(curlen==nextlen){max_count=6;min_count=3;}else{max_count=7;min_count=4;}}}
3014function send_all_trees(lcodes,dcodes,blcodes){var rank;send_bits(lcodes-257,5);send_bits(dcodes-1,5);send_bits(blcodes-4,4);for(rank=0;rank<blcodes;rank++){send_bits(bl_tree[Tree.bl_order[rank]*2+1],3);}
3015send_tree(dyn_ltree,lcodes-1);send_tree(dyn_dtree,dcodes-1);}
3016function bi_flush(){if(bi_valid==16){put_short(bi_buf);bi_buf=0;bi_valid=0;}else if(bi_valid>=8){put_byte(bi_buf&0xff);bi_buf>>>=8;bi_valid-=8;}}
3017function _tr_align(){send_bits(STATIC_TREES<<1,3);send_code(END_BLOCK,StaticTree.static_ltree);bi_flush();if(1+last_eob_len+10-bi_valid<9){send_bits(STATIC_TREES<<1,3);send_code(END_BLOCK,StaticTree.static_ltree);bi_flush();}
3018last_eob_len=7;}
3019function _tr_tally(dist,lc){var out_length,in_length,dcode;that.pending_buf[d_buf+last_lit*2]=(dist>>>8)&0xff;that.pending_buf[d_buf+last_lit*2+1]=dist&0xff;that.pending_buf[l_buf+last_lit]=lc&0xff;last_lit++;if(dist===0){dyn_ltree[lc*2]++;}else{matches++;dist--;dyn_ltree[(Tree._length_code[lc]+LITERALS+1)*2]++;dyn_dtree[Tree.d_code(dist)*2]++;}
3020if((last_lit&0x1fff)===0&&level>2){out_length=last_lit*8;in_length=strstart-block_start;for(dcode=0;dcode<D_CODES;dcode++){out_length+=dyn_dtree[dcode*2]*(5+Tree.extra_dbits[dcode]);}
3021out_length>>>=3;if((matches<Math.floor(last_lit/2))&&out_length<Math.floor(in_length/2))
3022return true;}
3023return(last_lit==lit_bufsize-1);}
3024function compress_block(ltree,dtree){var dist;var lc;var lx=0;var code;var extra;if(last_lit!==0){do{dist=((that.pending_buf[d_buf+lx*2]<<8)&0xff00)|(that.pending_buf[d_buf+lx*2+1]&0xff);lc=(that.pending_buf[l_buf+lx])&0xff;lx++;if(dist===0){send_code(lc,ltree);}else{code=Tree._length_code[lc];send_code(code+LITERALS+1,ltree);extra=Tree.extra_lbits[code];if(extra!==0){lc-=Tree.base_length[code];send_bits(lc,extra);}
3025dist--;code=Tree.d_code(dist);send_code(code,dtree);extra=Tree.extra_dbits[code];if(extra!==0){dist-=Tree.base_dist[code];send_bits(dist,extra);}}}while(lx<last_lit);}
3026send_code(END_BLOCK,ltree);last_eob_len=ltree[END_BLOCK*2+1];}
3027function bi_windup(){if(bi_valid>8){put_short(bi_buf);}else if(bi_valid>0){put_byte(bi_buf&0xff);}
3028bi_buf=0;bi_valid=0;}
3029function copy_block(buf,len,header){bi_windup();last_eob_len=8;if(header){put_short(len);put_short(~len);}
3030that.pending_buf.set(window.subarray(buf,buf+len),that.pending);that.pending+=len;}
3031function _tr_stored_block(buf,stored_len,eof){send_bits((STORED_BLOCK<<1)+(eof?1:0),3);copy_block(buf,stored_len,true);}
3032function _tr_flush_block(buf,stored_len,eof){var opt_lenb,static_lenb;var max_blindex=0;if(level>0){l_desc.build_tree(that);d_desc.build_tree(that);max_blindex=build_bl_tree();opt_lenb=(that.opt_len+3+7)>>>3;static_lenb=(that.static_len+3+7)>>>3;if(static_lenb<=opt_lenb)
3033opt_lenb=static_lenb;}else{opt_lenb=static_lenb=stored_len+5;}
3034if((stored_len+4<=opt_lenb)&&buf!=-1){_tr_stored_block(buf,stored_len,eof);}else if(static_lenb==opt_lenb){send_bits((STATIC_TREES<<1)+(eof?1:0),3);compress_block(StaticTree.static_ltree,StaticTree.static_dtree);}else{send_bits((DYN_TREES<<1)+(eof?1:0),3);send_all_trees(l_desc.max_code+1,d_desc.max_code+1,max_blindex+1);compress_block(dyn_ltree,dyn_dtree);}
3035init_block();if(eof){bi_windup();}}
3036function flush_block_only(eof){_tr_flush_block(block_start>=0?block_start:-1,strstart-block_start,eof);block_start=strstart;strm.flush_pending();}
3037function fill_window(){var n,m;var p;var more;do{more=(window_size-lookahead-strstart);if(more===0&&strstart===0&&lookahead===0){more=w_size;}else if(more==-1){more--;}else if(strstart>=w_size+w_size-MIN_LOOKAHEAD){window.set(window.subarray(w_size,w_size+w_size),0);match_start-=w_size;strstart-=w_size;block_start-=w_size;n=hash_size;p=n;do{m=(head[--p]&0xffff);head[p]=(m>=w_size?m-w_size:0);}while(--n!==0);n=w_size;p=n;do{m=(prev[--p]&0xffff);prev[p]=(m>=w_size?m-w_size:0);}while(--n!==0);more+=w_size;}
3038if(strm.avail_in===0)
3039return;n=strm.read_buf(window,strstart+lookahead,more);lookahead+=n;if(lookahead>=MIN_MATCH){ins_h=window[strstart]&0xff;ins_h=(((ins_h)<<hash_shift)^(window[strstart+1]&0xff))&hash_mask;}}while(lookahead<MIN_LOOKAHEAD&&strm.avail_in!==0);}
3040function deflate_stored(flush){var max_block_size=0xffff;var max_start;if(max_block_size>pending_buf_size-5){max_block_size=pending_buf_size-5;}
3041while(true){if(lookahead<=1){fill_window();if(lookahead===0&&flush==Z_NO_FLUSH)
3042return NeedMore;if(lookahead===0)
3043break;}
3044strstart+=lookahead;lookahead=0;max_start=block_start+max_block_size;if(strstart===0||strstart>=max_start){lookahead=(strstart-max_start);strstart=max_start;flush_block_only(false);
3044if(strm.avail_out===0)
3045return NeedMore;}
3046if(strstart-block_start>=w_size-MIN_LOOKAHEAD){flush_block_only(false);if(strm.avail_out===0)
3047return NeedMore;}}
3048flush_block_only(flush==Z_FINISH);if(strm.avail_out===0)
3049return(flush==Z_FINISH)?FinishStarted:NeedMore;return flush==Z_FINISH?FinishDone:BlockDone;}
3050function longest_match(cur_match){var chain_length=max_chain_length;var scan=strstart;var match;var len;var best_len=prev_length;var limit=strstart>(w_size-MIN_LOOKAHEAD)?strstart-(w_size-MIN_LOOKAHEAD):0;var _nice_match=nice_match;var wmask=w_mask;var strend=strstart+MAX_MATCH;var scan_end1=window[scan+best_len-1];var scan_end=window[scan+best_len];if(prev_length>=good_match){chain_length>>=2;}
3051if(_nice_match>lookahead)
3052_nice_match=lookahead;do{match=cur_match;if(window[match+best_len]!=scan_end||window[match+best_len-1]!=scan_end1||window[match]!=window[scan]||window[++match]!=window[scan+1])
3053continue;scan+=2;match++;do{}while(window[++scan]==window[++match]&&window[++scan]==window[++match]&&window[++scan]==window[++match]&&window[++scan]==window[++match]&&window[++scan]==window[++match]&&window[++scan]==window[++match]&&window[++scan]==window[++match]&&window[++scan]==window[++match]&&scan<strend);len=MAX_MATCH-(strend-scan);scan=strend-MAX_MATCH;if(len>best_len){match_start=cur_match;best_len=len;if(len>=_nice_match)
3054break;scan_end1=window[scan+best_len-1];scan_end=window[scan+best_len];}}while((cur_match=(prev[cur_match&wmask]&0xffff))>limit&&--chain_length!==0);if(best_len<=lookahead)
3055return best_len;return lookahead;}
3056function deflate_fast(flush){var hash_head=0;var bflush;while(true){if(lookahead<MIN_LOOKAHEAD){fill_window();if(lookahead<MIN_LOOKAHEAD&&flush==Z_NO_FLUSH){return NeedMore;}
3057if(lookahead===0)
3058break;}
3059if(lookahead>=MIN_MATCH){ins_h=(((ins_h)<<hash_shift)^(window[(strstart)+(MIN_MATCH-1)]&0xff))&hash_mask;hash_head=(head[ins_h]&0xffff);prev[strstart&w_mask]=head[ins_h];head[ins_h]=strstart;}
3060if(hash_head!==0&&((strstart-hash_head)&0xffff)<=w_size-MIN_LOOKAHEAD){if(strategy!=Z_HUFFMAN_ONLY){match_length=longest_match(hash_head);}}
3061if(match_length>=MIN_MATCH){bflush=_tr_tally(strstart-match_start,match_length-MIN_MATCH);lookahead-=match_length;if(match_length<=max_lazy_match&&lookahead>=MIN_MATCH){match_length--;do{strstart++;ins_h=((ins_h<<hash_shift)^(window[(strstart)+(MIN_MATCH-1)]&0xff))&hash_mask;hash_head=(head[ins_h]&0xffff);prev[strstart&w_mask]=head[ins_h];head[ins_h]=strstart;}while(--match_length!==0);strstart++;}else{strstart+=match_length;match_length=0;ins_h=window[strstart]&0xff;ins_h=(((ins_h)<<hash_shift)^(window[strstart+1]&0xff))&hash_mask;}}else{bflush=_tr_tally(0,window[strstart]&0xff);lookahead--;strstart++;}
3062if(bflush){flush_block_only(false);if(strm.avail_out===0)
3063return NeedMore;}}
3064flush_block_only(flush==Z_FINISH);if(strm.avail_out===0){if(flush==Z_FINISH)
3065return FinishStarted;else
3066return NeedMore;}
3067return flush==Z_FINISH?FinishDone:BlockDone;}
3068function deflate_slow(flush){var hash_head=0;var bflush;var max_insert;while(true){if(lookahead<MIN_LOOKAHEAD){fill_window();if(lookahead<MIN_LOOKAHEAD&&flush==Z_NO_FLUSH){return NeedMore;}
3069if(lookahead===0)
3070break;}
3071if(lookahead>=MIN_MATCH){ins_h=(((ins_h)<<hash_shift)^(window[(strstart)+(MIN_MATCH-1)]&0xff))&hash_mask;hash_head=(head[ins_h]&0xffff);prev[strstart&w_mask]=head[ins_h];head[ins_h]=strstart;}
3072prev_length=match_length;prev_match=match_start;match_length=MIN_MATCH-1;if(hash_head!==0&&prev_length<max_lazy_match&&((strstart-hash_head)&0xffff)<=w_size-MIN_LOOKAHEAD){if(strategy!=Z_HUFFMAN_ONLY){match_length=longest_match(hash_head);}
3073if(match_length<=5&&(strategy==Z_FILTERED||(match_length==MIN_MATCH&&strstart-match_start>4096))){match_length=MIN_MATCH-1;}}
3074if(prev_length>=MIN_MATCH&&match_length<=prev_length){max_insert=strstart+lookahead-MIN_MATCH;bflush=_tr_tally(strstart-1-prev_match,prev_length-MIN_MATCH);lookahead-=prev_length-1;prev_length-=2;do{if(++strstart<=max_insert){ins_h=(((ins_h)<<hash_shift)^(window[(strstart)+(MIN_MATCH-1)]&0xff))&hash_mask;hash_head=(head[ins_h]&0xffff);prev[strstart&w_mask]=head[ins_h];head[ins_h]=strstart;}}while(--prev_length!==0);match_available=0;match_length=MIN_MATCH-1;strstart++;if(bflush){flush_block_only(false);
3074if(strm.avail_out===0)
3075return NeedMore;}}else if(match_available!==0){bflush=_tr_tally(0,window[strstart-1]&0xff);if(bflush){flush_block_only(false);}
3076strstart++;lookahead--;if(strm.avail_out===0)
3077return NeedMore;}else{match_available=1;strstart++;lookahead--;}}
3078if(match_available!==0){bflush=_tr_tally(0,window[strstart-1]&0xff);match_available=0;}
3079flush_block_only(flush==Z_FINISH);if(strm.avail_out===0){if(flush==Z_FINISH)
3080return FinishStarted;else
3081return NeedMore;}
3082return flush==Z_FINISH?FinishDone:BlockDone;}
3083function deflateReset(strm){strm.total_in=strm.total_out=0;strm.msg=null;that.pending=0;that.pending_out=0;status=BUSY_STATE;last_flush=Z_NO_FLUSH;tr_init();lm_init();return Z_OK;}
3084that.deflateInit=function(strm,_level,bits,_method,memLevel,_strategy){if(!_method)
3085_method=Z_DEFLATED;if(!memLevel)
3086memLevel=DEF_MEM_LEVEL;if(!_strategy)
3087_strategy=Z_DEFAULT_STRATEGY;strm.msg=null;if(_level==Z_DEFAULT_COMPRESSION)
3088_level=6;if(memLevel<1||memLevel>MAX_MEM_LEVEL||_method!=Z_DEFLATED||bits<9||bits>15||_level<0||_level>9||_strategy<0||_strategy>Z_HUFFMAN_ONLY){return Z_STREAM_ERROR;}
3089strm.dstate=that;w_bits=bits;w_size=1<<w_bits;
3089w_mask=w_size-1;hash_bits=memLevel+7;hash_size=1<<hash_bits;hash_mask=hash_size-1;hash_shift=Math.floor((hash_bits+MIN_MATCH-1)/MIN_MATCH);window=new Uint8Array(w_size*2);prev=[];head=[];lit_bufsize=1<<(memLevel+6);that.pending_buf=new Uint8Array(lit_bufsize*4);pending_buf_size=lit_bufsize*4;d_buf=Math.floor(lit_bufsize/2);l_buf=(1+2)*lit_bufsize;level=_level;strategy=_strategy;method=_method&0xff;return deflateReset(strm);};that.deflateEnd=function(){if(status!=INIT_STATE&&status!=BUSY_STATE&&status!=FINISH_STATE){return Z_STREAM_ERROR;}
3090that.pending_buf=null;head=null;prev=null;window=null;that.dstate=null;return status==BUSY_STATE?Z_DATA_ERROR:Z_OK;};that.deflateParams=function(strm,_level,_strategy){var err=Z_OK;if(_level==Z_DEFAULT_COMPRESSION){_level=6;}
3091if(_level<0||_level>9||_strategy<0||_strategy>Z_HUFFMAN_ONLY){return Z_STREAM_ERROR;}
3092if(config_table[level].func!=config_table[_level].func&&strm.total_in!==0){err=strm.deflate(Z_PARTIAL_FLUSH);}
3093if(level!=_level){level=_level;max_lazy_match=config_table[level].max_lazy;good_match=config_table[level].good_length;nice_match=config_table[level].nice_length;max_chain_length=config_table[level].max_chain;}
3094strategy=_strategy;return err;};that.deflateSetDictionary=function(strm,dictionary,dictLength){var length=dictLength;var n,index=0;
3094if(!dictionary||status!=INIT_STATE)
3095return Z_STREAM_ERROR;if(length<MIN_MATCH)
3096return Z_OK;if(length>w_size-MIN_LOOKAHEAD){length=w_size-MIN_LOOKAHEAD;index=dictLength-length;}
3097window.set(dictionary.subarray(index,index+length),0);strstart=length;block_start=length;ins_h=window[0]&0xff;ins_h=(((ins_h)<<hash_shift)^(window[1]&0xff))&hash_mask;for(n=0;n<=length-MIN_MATCH;n++){ins_h=(((ins_h)<<hash_shift)^(window[(n)+(MIN_MATCH-1)]&0xff))&hash_mask;prev[n&w_mask]=head[ins_h];head[ins_h]=n;}
3098return Z_OK;};that.deflate=function(_strm,flush){var i,header,level_flags,old_flush,bstate;if(flush>Z_FINISH||flush<0){return Z_STREAM_ERROR;}
3099if(!_strm.next_out||(!_strm.next_in&&_strm.avail_in!==0)||(status==FINISH_STATE&&flush!=Z_FINISH)){_strm.msg=z_errmsg[Z_NEED_DICT-(Z_STREAM_ERROR)];return Z_STREAM_ERROR;}
3100if(_strm.avail_out===0){_strm.msg=z_errmsg[Z_NEED_DICT-(Z_BUF_ERROR)];return Z_BUF_ERROR;}
3101strm=_strm;old_flush=last_flush;last_flush=flush;if(status==INIT_STATE){header=(Z_DEFLATED+((w_bits-8)<<4))<<8;level_flags=((level-1)&0xff)>>1;if(level_flags>3)
3102level_flags=3;header|=(level_flags<<6);if(strstart!==0)
3103header|=PRESET_DICT;header+=31-(header%31);status=BUSY_STATE;putShortMSB(header);}
3104if(that.pending!==0){strm.flush_pending();if(strm.avail_out===0){last_flush=-1;return Z_OK;}}else if(strm.avail_in===0&&flush<=old_flush&&flush!=Z_FINISH){strm.msg=z_errmsg[Z_NEED_DICT-(Z_BUF_ERROR)];return Z_BUF_ERROR;}
3105if(status==FINISH_STATE&&strm.avail_in!==0){_strm.msg=z_errmsg[Z_NEED_DICT-(Z_BUF_ERROR)];return Z_BUF_ERROR;}
3106if(strm.avail_in!==0||lookahead!==0||(flush!=Z_NO_FLUSH&&status!=FINISH_STATE)){bstate=-1;switch(config_table[level].func){case STORED:bstate=deflate_stored(flush);break;case FAST:bstate=deflate_fast(flush);break;case SLOW:bstate=deflate_slow(flush);break;default:}
3107if(bstate==FinishStarted||bstate==FinishDone){status=FINISH_STATE;}
3108if(bstate==NeedMore||bstate==FinishStarted){if(strm.avail_out===0){last_flush=-1;}
3109return Z_OK;}
3110if(bstate==BlockDone){if(flush==Z_PARTIAL_FLUSH){_tr_align();}else{_tr_stored_block(0,0,false);if(flush==Z_FULL_FLUSH){for(i=0;i<hash_size;i++)
3111head[i]=0;}}
3112strm.flush_pending();if(strm.avail_out===0){last_flush=-1;return Z_OK;}}}
3113if(flush!=Z_FINISH)
3114return Z_OK;return Z_STREAM_END;};}
3115function ZStream(){var that=this;that.next_in_index=0;that.next_out_index=0;that.avail_in=0;that.total_in=0;that.avail_out=0;that.total_out=0;}
3116ZStream.prototype={deflateInit:function(level,bits){var that=this;that.dstate=new Deflate();if(!bits)
3117bits=MAX_BITS;return that.dstate.deflateInit(that,level,bits);},deflate:function(flush){var that=this;if(!that.dstate){return Z_STREAM_ERROR;}
3118return that.dstate.deflate(that,flush);},deflateEnd:function(){var that=this;if(!that.dstate)
3119return Z_STREAM_ERROR;var ret=that.dstate.deflateEnd();that.dstate=null;return ret;},deflateParams:function(level,strategy){var that=this;if(!that.dstate)
3120return Z_STREAM_ERROR;return that.dstate.deflateParams(that,level,strategy);},deflateSetDictionary:function(dictionary,dictLength){var that=this;if(!that.dstate)
3121return Z_STREAM_ERROR;return that.dstate.deflateSetDictionary(that,dictionary,dictLength);},read_buf:function(buf,start,size){var that=this;var len=that.avail_in;if(len>size)
3122len=size;if(len===0)
3123return 0;that.avail_in-=len;buf.set(that.next_in.subarray(that.next_in_index,that.next_in_index+len),start);that.next_in_index+=len;that.total_in+=len;return len;},flush_pending:function(){var that=this;var len=that.dstate.pending;if(len>that.avail_out)
3124len=that.avail_out;if(len===0)
3125return;that.next_out.set(that.dstate.pending_buf.subarray(that.dstate.pending_out,that.dstate.pending_out+len),that.next_out_index);that.next_out_index+=len;that.dstate.pending_out+=len;that.total_out+=len;that.avail_out-=len;that.dstate.pending-=len;if(that.dstate.pending===0){that.dstate.pending_out=0;}}};return function Deflater(level){var that=this;var z=new ZStream();var bufsize=512;var flush=Z_NO_FLUSH;var buf=new Uint8Array(bufsize);if(typeof level=="undefined")
3126level=Z_DEFAULT_COMPRESSION;z.deflateInit(level);z.next_out=buf;that.append=function(data,onprogress){var err,buffers=[],lastIndex=0,bufferIndex=0,bufferSize=0,array;if(!data.length)
3127return;z.next_in_index=0;z.next_in=data;z.avail_in=data.length;do{z.next_out_index=0;z.avail_out=bufsize;err=z.deflate(flush);if(err!=Z_OK)
3128throw"deflating: "+z.msg;if(z.next_out_index)
3129if(z.next_out_index==bufsize)
3130buffers.push(new Uint8Array(buf));else
3131buffers.push(new Uint8Array(buf.subarray(0,z.next_out_index)));bufferSize+=z.next_out_index;if(onprogress&&z.next_in_index>0&&z.next_in_index!=lastIndex){onprogress(z.next_in_index);lastIndex=z.next_in_index;}}while(z.avail_in>0||z.avail_out===0);array=new Uint8Array(bufferSize);
3131buffers.forEach(function(chunk){array.set(chunk,bufferIndex);bufferIndex+=chunk.length;});return array;};that.flush=function(){var err,buffers=[],bufferIndex=0,bufferSize=0,array;do{z.next_out_index=0;z.avail_out=bufsize;err=z.deflate(Z_FINISH);if(err!=Z_STREAM_END&&err!=Z_OK)
3132throw"deflating: "+z.msg;if(bufsize-z.avail_out>0)
3133buffers.push(new Uint8Array(buf.subarray(0,z.next_out_index)));bufferSize+=z.next_out_index;}while(z.avail_in>0||z.avail_out===0);z.deflateEnd();array=new Uint8Array(bufferSize);buffers.forEach(function(chunk){array.set(chunk,bufferIndex);bufferIndex+=chunk.length;});return array;};};})(this);(function(global){var PNG;PNG=(function(){var APNG_BLEND_OP_OVER,APNG_BLEND_OP_SOURCE,APNG_DISPOSE_OP_BACKGROUND,APNG_DISPOSE_OP_NONE,APNG_DISPOSE_OP_PREVIOUS,makeImage,scratchCanvas,scratchCtx;PNG.load=function(url,canvas,callback){var xhr,_this=this;if(typeof canvas==='function'){callback=canvas;}
3134xhr=new XMLHttpRequest;xhr.open("GET",url,true);xhr.responseType="arraybuffer";xhr.onload=function(){var data,png;data=new Uint8Array(xhr.response||xhr.mozResponseArrayBuffer);png=new PNG(data);if(typeof(canvas!=null?canvas.getContext:void 0)==='function'){png.render(canvas);}
3135return typeof callback==="function"?callback(png):void 0;};return xhr.send(null);};APNG_DISPOSE_OP_NONE=0;APNG_DISPOSE_OP_BACKGROUND=1;APNG_DISPOSE_OP_PREVIOUS=2;APNG_BLEND_OP_SOURCE=0;APNG_BLEND_OP_OVER=1;function PNG(data){var chunkSize,colors,palLen,delayDen,delayNum,frame,i,index,key,section,palShort,text,_i,_j,_ref;this.data=data;this.pos=8;this.palette=[];this.imgData=[];this.transparency={};this.animation=null;this.text={};frame=null;while(true){chunkSize=this.readUInt32();section=((function(){var _i,_results;_results=[];for(i=_i=0;_i<4;i=++_i){_results.push(String.fromCharCode(this.data[this.pos++]));}
3136return _results;}).call(this)).join('');switch(section){case'IHDR':this.width=this.readUInt32();this.height=this.readUInt32();this.bits=this.data[this.pos++];this.colorType=this.data[this.pos++];this.compressionMethod=this.data[this.pos++];this.filterMethod=this.data[this.pos++];this.interlaceMethod=this.data[this.pos++];break;case'acTL':this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||Infinity,frames:[]};break;case'PLTE':this.palette=this.read(chunkSize);break;case'fcTL':if(frame){this.animation.frames.push(frame);}
3137this.pos+=4;frame={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()};delayNum=this.readUInt16();delayDen=this.readUInt16()||100;frame.delay=1000*delayNum/delayDen;frame.disposeOp=this.data[this.pos++];frame.blendOp=this.data[this.pos++];frame.data=[];break;case'IDAT':case'fdAT':if(section==='fdAT'){this.pos+=4;chunkSize-=4;}
3138data=(frame!=null?frame.data:void 0)||this.imgData;for(i=_i=0;0<=chunkSize?_i<chunkSize:_i>chunkSize;i=0<=chunkSize?++_i:--_i){data.push(this.data[this.pos++]);}
3139break;case'tRNS':this.transparency={};switch(this.colorType){case 3:palLen=this.palette.length/3;this.transparency.indexed=this.read(chunkSize);if(this.transparency.indexed.length>palLen)
3140throw new Error('More transparent colors than palette size');palShort=palLen-this.transparency.indexed.length;if(palShort>0){for(i=_j=0;0<=palShort?_j<palShort:_j>palShort;i=0<=palShort?++_j:--_j){this.transparency.indexed.push(255);}}
3141break;case 0:this.transparency.grayscale=this.read(chunkSize)[0];break;case 2:this.transparency.rgb=this.read(chunkSize);}
3142break;case'tEXt':text=this.read(chunkSize);index=text.indexOf(0);key=String.fromCharCode.apply(String,text.slice(0,index));this.text[key]=String.fromCharCode.apply(String,text.slice(index+1));break;case'IEND':if(frame){this.animation.frames.push(frame);}
3143this.colors=(function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3;}}).call(this);this.hasAlphaChannel=(_ref=this.colorType)===4||_ref===6;colors=this.colors+(this.hasAlphaChannel?1:0);this.pixelBitlength=this.bits*colors;this.colorSpace=(function(){switch(this.colors){case 1:return'DeviceGray';case 3:return'DeviceRGB';}}).call(this);this.imgData=new Uint8Array(this.imgData);return;default:this.pos+=chunkSize;}
3144this.pos+=4;if(this.pos>this.data.length){throw new Error("Incomplete or corrupt PNG file");}}
3145return;}
3146PNG.prototype.read=function(bytes){var i,_i,_results;_results=[];for(i=_i=0;0<=bytes?_i<bytes:_i>bytes;i=0<=bytes?++_i:--_i){_results.push(this.data[this.pos++]);}
3147return _results;};PNG.prototype.readUInt32=function(){var b1,b2,b3,b4;b1=this.data[this.pos++]<<24;b2=this.data[this.pos++]<<16;b3=this.data[this.pos++]<<8;b4=this.data[this.pos++];return b1|b2|b3|b4;};PNG.prototype.readUInt16=function(){var b1,b2;b1=this.data[this.pos++]<<8;b2=this.data[this.pos++];return b1|b2;};PNG.prototype.decodePixels=function(data){var abyte,c,col,i,left,length,p,pa,paeth,pb,pc,pixelBytes,pixels,pos,row,scanlineLength,upper,upperLeft,_i,_j,_k,_l,_m;if(data==null){data=this.imgData;}
3148if(data.length===0){return new Uint8Array(0);}
3149data=new FlateStream(data);data=data.getBytes();pixelBytes=this.pixelBitlength/8;scanlineLength=pixelBytes*this.width;pixels=new Uint8Array(scanlineLength*this.height);length=data.length;row=0;pos=0;c=0;while(pos<length){switch(data[pos++]){case 0:for(i=_i=0;
3149_i<scanlineLength;i=_i+=1){pixels[c++]=data[pos++];}
3150break;case 1:for(i=_j=0;_j<scanlineLength;i=_j+=1){abyte=data[pos++];left=i<pixelBytes?0:pixels[c-pixelBytes];pixels[c++]=(abyte+left)%256;}
3151break;case 2:for(i=_k=0;_k<scanlineLength;i=_k+=1){abyte=data[pos++];col=(i-(i%pixelBytes))/pixelBytes;upper=row&&pixels[(row-1)*scanlineLength+col*pixelBytes+(i%pixelBytes)];pixels[c++]=(upper+abyte)%256;}
3152break;case 3:for(i=_l=0;_l<scanlineLength;i=_l+=1){abyte=data[pos++];col=(i-(i%pixelBytes))/pixelBytes;left=i<pixelBytes?0:pixels[c-pixelBytes];upper=row&&pixels[(row-1)*scanlineLength+col*pixelBytes+(i%pixelBytes)];pixels[c++]=(abyte+Math.floor((left+upper)/2))%256;}
3153break;case 4:for(i=_m=0;_m<scanlineLength;i=_m+=1){abyte=data[pos++];col=(i-(i%pixelBytes))/pixelBytes;left=i<pixelBytes?0:pixels[c-pixelBytes];if(row===0){upper=upperLeft=0;}else{upper=pixels[(row-1)*scanlineLength+col*pixelBytes+(i%pixelBytes)];upperLeft=col&&pixels[(row-1)*scanlineLength+(col-1)*pixelBytes+(i%pixelBytes)];}
3154p=left+upper-upperLeft;pa=Math.abs(p-left);pb=Math.abs(p-upper);pc=Math.abs(p-upperLeft);if(pa<=pb&&pa<=pc){paeth=left;}else if(pb<=pc){paeth=upper;}else{paeth=upperLeft;}
3155pixels[c++]=(abyte+paeth)%256;}
3156break;default:throw new Error("Invalid filter algorithm: "+data[pos-1]);}
3157row++;}
3158return pixels;};PNG.prototype.decodePalette=function(){var c,i,length,palette,pos,ret,transparency,_i,_ref,_ref1;palette=this.palette;transparency=this.transparency.indexed||[];ret=new Uint8Array((transparency.length||0)+palette.length);pos=0;length=palette.length;c=0;for(i=_i=0,_ref=palette.length;_i<_ref;i=_i+=3){ret[pos++]=palette[i];ret[pos++]=palette[i+1];ret[pos++]=palette[i+2];ret[pos++]=(_ref1=transparency[c++])!=null?_ref1:255;}
3159return ret;};PNG.prototype.copyToImageData=function(imageData,pixels){var alpha,colors,data,i,input,j,k,length,palette,v,_ref;colors=this.colors;palette=null;alpha=this.hasAlphaChannel;if(this.palette.length){palette=(_ref=this._decodedPalette)!=null?_ref:this._decodedPalette=this.decodePalette();colors=4;alpha=true;}
3160data=imageData.data||imageData;length=data.length;input=palette||pixels;i=j=0;if(colors===1){while(i<length){k=palette?pixels[i/4]*4:j;v=input[k++];data[i++]=v;data[i++]=v;data[i++]=v;data[i++]=alpha?input[k++]:255;j=k;}}else{while(i<length){k=palette?pixels[i/4]*4:j;data[i++]=input[k++];data[i++]=input[k++];data[i++]=input[k++];data[i++]=alpha?input[k++]:255;j=k;}}};PNG.prototype.decode=function(){var ret;ret=new Uint8Array(this.width*this.height*4);this.copyToImageData(ret,this.decodePixels());return ret;};try{scratchCanvas=global.document.createElement('canvas');scratchCtx=scratchCanvas.getContext('2d');}catch(e){return-1;}
3161makeImage=function(imageData){var img;scratchCtx.width=imageData.width;scratchCtx.height=imageData.height;scratchCtx.clearRect(0,0,imageData.width,imageData.height);scratchCtx.putImageData(imageData,0,0);img=new Image;img.src=scratchCanvas.toDataURL();return img;};PNG.prototype.decodeFrames=function(ctx){var frame,i,imageData,pixels,_i,_len,_ref,_results;if(!this.animation){return;}
3162_ref=this.animation.frames;_results=[];for(i=_i=0,_len=_ref.length;_i<_len;i=++_i){frame=_ref[i];imageData=ctx.createImageData(frame.width,frame.height);pixels=this.decodePixels(new Uint8Array(frame.data));this.copyToImageData(imageData,pixels);frame.imageData=imageData;_results.push(frame.image=makeImage(imageData));}
3163return _results;};PNG.prototype.renderFrame=function(ctx,number){var frame,frames,prev;frames=this.animation.frames;frame=frames[number];prev=frames[number-1];if(number===0){ctx.clearRect(0,0,this.width,this.height);}
3164if((prev!=null?prev.disposeOp:void 0)===APNG_DISPOSE_OP_BACKGROUND){ctx.clearRect(prev.xOffset,prev.yOffset,prev.width,prev.height);}else if((prev!=null?prev.disposeOp:void 0)===APNG_DISPOSE_OP_PREVIOUS){ctx.putImageData(prev.imageData,prev.xOffset,prev.yOffset);}
3165if(frame.blendOp===APNG_BLEND_OP_SOURCE){ctx.clearRect(frame.xOffset,frame.yOffset,frame.width,frame.height);}
3166return ctx.drawImage(frame.image,frame.xOffset,frame.yOffset);};PNG.prototype.animate=function(ctx){var doFrame,frameNumber,frames,numFrames,numPlays,_ref,_this=this;frameNumber=0;_ref=this.animation,numFrames=_ref.numFrames,frames=_ref.frames,numPlays=_ref.numPlays;return(doFrame=function(){var f,frame;f=frameNumber++%numFrames;frame=frames[f];_this.renderFrame(ctx,f);if(numFrames>1&&frameNumber/numFrames<numPlays){return _this.animation._timeout=setTimeout(doFrame,frame.delay);}})();};PNG.prototype.stopAnimation=function(){var _ref;return clearTimeout((_ref=this.animation)!=null?_ref._timeout:void 0);};PNG.prototype.render=function(canvas){var ctx,data;if(canvas._png){canvas._png.stopAnimation();}
3167canvas._png=this;canvas.width=this.width;canvas.height=this.height;ctx=canvas.getContext("2d");if(this.animation){this.decodeFrames(ctx);return this.animate(ctx);}else{data=ctx.createImageData(this.width,this.height);this.copyToImageData(data,this.decodePixels());return ctx.putImageData(data,0,0);}};return PNG;})();global.PNG=PNG;})(typeof window!=="undefined"&&window||this);var DecodeStream=(function(){function constructor(){this.pos=0;this.bufferLength=0;this.eof=false;this.buffer=null;}
3168constructor.prototype={ensureBuffer:function decodestream_ensureBuffer(requested){var buffer=this.buffer;var current=buffer?buffer.byteLength:0;if(requested<current)
3169return buffer;var size=512;while(size<requested)
3170size<<=1;var buffer2=new Uint8Array(size);for(var i=0;i<current;++i)
3171buffer2[i]=buffer[i];return this.buffer=buffer2;},getByte:function decodestream_getByte(){var pos=this.pos;
3171while(this.bufferLength<=pos){if(this.eof)
3172return null;this.readBlock();}
3173return this.buffer[this.pos++];},getBytes:function decodestream_getBytes(length){var pos=this.pos;if(length){this.ensureBuffer(pos+length);var end=pos+length;while(!this.eof&&this.bufferLength<end)
3174this.readBlock();var bufEnd=this.bufferLength;if(end>bufEnd)
3175end=bufEnd;}else{while(!this.eof)
3176this.readBlock();var end=this.bufferLength;}
3177this.pos=end;return this.buffer.subarray(pos,end);},lookChar:function decodestream_lookChar(){var pos=this.pos;while(this.bufferLength<=pos){if(this.eof)
3178return null;this.readBlock();}
3179return String.fromCharCode(this.buffer[this.pos]);},getChar:function decodestream_getChar(){var pos=this.pos;while(this.bufferLength<=pos){if(this.eof)
3180return null;this.readBlock();}
3181return String.fromCharCode(this.buffer[this.pos++]);},makeSubStream:function decodestream_makeSubstream(start,length,dict){var end=start+length;while(this.bufferLength<=end&&!this.eof)
3182this.readBlock();return new Stream(this.buffer,start,length,dict);},skip:function decodestream_skip(n){if(!n)
3183n=1;this.pos+=n;},reset:function decodestream_reset(){this.pos=0;}};return constructor;})();var FlateStream=(function(){if(typeof Uint32Array==='undefined'){return undefined;}
3184var codeLenCodeMap=new Uint32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);var lengthDecode=new Uint32Array([0x00003,0x00004,0x00005,0x00006,0x00007,0x00008,0x00009,0x0000a,0x1000b,0x1000d,0x1000f,0x10011,0x20013,0x20017,0x2001b,0x2001f,0x30023,0x3002b,0x30033,0x3003b,0x40043,0x40053,0x40063,0x40073,0x50083,0x500a3,0x500c3,0x500e3,0x00102,0x00102,0x00102]);var distDecode=new Uint32Array([0x00001,0x00002,0x00003,0x00004,0x10005,0x10007,0x20009,0x2000d,0x30011,0x30019,0x40021,0x40031,0x50041,0x50061,0x60081,0x600c1,0x70101,0x70181,0x80201,0x80301,0x90401,0x90601,0xa0801,0xa0c01,0xb1001,0xb1801,0xc2001,0xc3001,0xd4001,0xd6001]);var fixedLitCodeTab=[new Uint32Array([0x70100,0x80050,0x80010,0x80118,0x70110,0x80070,0x80030,0x900c0,0x70108,0x80060,0x80020,0x900a0,0x80000,0x80080,0x80040,0x900e0,0x70104,0x80058,0x80018,0x90090,0x70114,0x80078,0x80038,0x900d0,0x7010c,0x80068,0x80028,0x900b0,0x80008,0x80088,0x80048,0x900f0,0x70102,0x80054,0x80014,0x8011c,0x70112,0x80074,0x80034,0x900c8,0x7010a,0x80064,0x80024,0x900a8,0x80004,0x80084,0x80044,0x900e8,0x70106,0x8005c,0x8001c,0x90098,0x70116,0x8007c,0x8003c,0x900d8,0x7010e,0x8006c,0x8002c,0x900b8,0x8000c,0x8008c,0x8004c,0x900f8,0x70101,0x80052,0x80012,0x8011a,0x70111,0x80072,0x80032,0x900c4,0x70109,0x80062,0x80022,0x900a4,0x80002,0x80082,0x80042,0x900e4,0x70105,0x8005a,0x8001a,0x90094,0x70115,0x8007a,0x8003a,0x900d4,0x7010d,0x8006a,0x8002a,0x900b4,0x8000a,0x8008a,0x8004a,0x900f4,0x70103,0x80056,0x80016,0x8011e,0x70113,0x80076,0x80036,0x900cc,0x7010b,0x80066,0x80026,0x900ac,0x80006,0x80086,0x80046,0x900ec,0x70107,0x8005e,0x8001e,0x9009c,0x70117,0x8007e,0x8003e,0x900dc,0x7010f,0x8006e,0x8002e,0x900bc,0x8000e,0x8008e,0x8004e,0x900fc,0x70100,0x80051,0x80011,0x80119,0x70110,0x80071,0x80031,0x900c2,0x70108,0x80061,0x80021,0x900a2,0x80001,0x80081,0x80041,0x900e2,0x70104,0x80059,0x80019,0x90092,0x70114,0x80079,0x80039,0x900d2,0x7010c,0x80069,0x80029,0x900b2,0x80009,0x80089,0x80049,0x900f2,0x70102,0x80055,0x80015,0x8011d,0x70112,0x80075,0x80035,0x900ca,0x7010a,0x80065,0x80025,0x900aa,0x80005,0x80085,0x80045,0x900ea,0x70106,0x8005d,0x8001d,0x9009a,0x70116,0x8007d,0x8003d,0x900da,0x7010e,0x8006d,0x8002d,0x900ba,0x8000d,0x8008d,0x8004d,0x900fa,0x70101,0x80053,0x80013,0x8011b,0x70111,0x80073,0x80033,0x900c6,0x70109,0x80063,0x80023,0x900a6,0x80003,0x80083,0x80043,0x900e6,0x70105,0x8005b,0x8001b,0x90096,0x70115,0x8007b,0x8003b,0x900d6,0x7010d,0x8006b,0x8002b,0x900b6,0x8000b,0x8008b,0x8004b,0x900f6,0x70103,0x80057,0x80017,0x8011f,0x70113,0x80077,0x80037,0x900ce,0x7010b,0x80067,0x80027,0x900ae,0x80007,0x80087,0x80047,0x900ee,0x70107,0x8005f,0x8001f,0x9009e,0x70117,0x8007f,0x8003f,0x900de,0x7010f,0x8006f,0x8002f,0x900be,0x8000f,0x8008f,0x8004f,0x900fe,0x70100,0x80050,0x80010,0x80118,0x70110,0x80070,0x80030,0x900c1,0x70108,0x80060,0x80020,0x900a1,0x80000,0x80080,0x80040,0x900e1,0x70104,0x80058,0x80018,0x90091,0x70114,0x80078,0x80038,0x900d1,0x7010c,
31840x80068,0x80028,0x900b1,0x80008,0x80088,0x80048,0x900f1,0x70102,0x80054,0x80014,0x8011c,0x70112,0x80074,0x80034,0x900c9,0x7010a,0x80064,0x80024,0x900a9,0x80004,0x80084,0x80044,0x900e9,0x70106,0x8005c,0x8001c,0x90099,0x70116,0x8007c,0x8003c,0x900d9,0x7010e,0x8006c,0x8002c,0x900b9,0x8000c,0x8008c,0x8004c,0x900f9,0x70101,0x80052,0x80012,0x8011a,0x70111,0x80072,0x80032,0x900c5,0x70109,0x80062,0x80022,0x900a5,0x80002,0x80082,0x80042,0x900e5,0x70105,0x8005a,0x8001a,0x90095,0x70115,0x8007a,0x8003a,0x900d5,0x7010d,0x8006a,0x8002a,0x900b5,0x8000a,0x8008a,0x8004a,0x900f5,0x70103,0x80056,0x80016,0x8011e,0x70113,0x80076,0x80036,0x900cd,0x7010b,0x80066,0x80026,0x900ad,0x80006,0x80086,0x80046,0x900ed,0x70107,0x8005e,0x8001e,0x9009d,0x70117,0x8007e,0x8003e,0x900dd,0x7010f,0x8006e,0x8002e,0x900bd,0x8000e,0x8008e,0x8004e,0x900fd,0x70100,0x80051,0x80011,0x80119,0x70110,0x80071,0x80031,0x900c3,0x70108,0x80061,0x80021,0x900a3,0x80001,0x80081,0x80041,0x900e3,0x70104,0x80059,0x80019,0x90093,0x70114,0x80079,0x80039,0x900d3,0x7010c,0x80069,0x80029,0x900b3,0x80009,0x80089,0x80049,0x900f3,0x70102,0x80055,0x80015,0x8011d,0x70112,0x80075,0x80035,0x900cb,0x7010a,0x80065,0x80025,0x900ab,0x80005,0x80085,0x80045,0x900eb,0x70106,0x8005d,0x8001d,0x9009b,0x70116,0x8007d,0x8003d,0x900db,0x7010e,0x8006d,0x8002d,0x900bb,0x8000d,0x8008d,0x8004d,0x900fb,0x70101,0x80053,0x80013,0x8011b,0x70111,0x80073,0x80033,0x900c7,0x70109,0x80063,0x80023,0x900a7,0x80003,0x80083,0x80043,0x900e7,0x70105,0x8005b,0x8001b,0x90097,0x70115,0x8007b,0x8003b,0x900d7,0x7010d,0x8006b,0x8002b,0x900b7,0x8000b,0x8008b,0x8004b,0x900f7,0x70103,0x80057,0x80017,0x8011f,0x70113,0x80077,0x80037,0x900cf,0x7010b,0x80067,0x80027,0x900af,0x80007,0x80087,0x80047,0x900ef,0x70107,0x8005f,0x8001f,0x9009f,0x70117,0x8007f,0x8003f,0x900df,0x7010f,0x8006f,0x8002f,0x900bf,0x8000f,0x8008f,0x8004f,0x900ff]),9];var fixedDistCodeTab=[new Uint32Array([0x50000,0x50010,0x50008,0x50018,0x50004,0x50014,0x5000c,0x5001c,0x50002,0x50012,0x5000a,0x5001a,0x50006,0x50016,0x5000e,0x00000,0x50001,0x50011,0x50009,0x50019,0x50005,0x50015,0x5000d,0x5001d,0x50003,0x50013,0x5000b,0x5001b,0x50007,0x50017,0x5000f,0x00000]),5];function error(e){throw new Error(e)}
3185function constructor(bytes){var bytesPos=0;var cmf=bytes[bytesPos++];var flg=bytes[bytesPos++];if(cmf==-1||flg==-1)
3186error('Invalid header in flate stream');if((cmf&0x0f)!=0x08)
3187error('Unknown compression method in flate stream');if((((cmf<<8)+flg)%31)!=0)
3188error('Bad FCHECK in flate stream');if(flg&0x20)
3189error('FDICT bit set in flate stream');this.bytes=bytes;this.bytesPos=bytesPos;this.codeSize=0;this.codeBuf=0;DecodeStream.call(this);}
3190constructor.prototype=Object.create(DecodeStream.prototype);constructor.prototype.getBits=function(bits){var codeSize=this.codeSize;var codeBuf=this.codeBuf;var bytes=this.bytes;var bytesPos=this.bytesPos;var b;while(codeSize<bits){if(typeof(b=bytes[bytesPos++])=='undefined')
3191error('Bad encoding in flate stream');codeBuf|=b<<codeSize;codeSize+=8;}
3192b=codeBuf&((1<<bits)-1);this.codeBuf=codeBuf>>bits;this.codeSize=codeSize-=bits;this.bytesPos=bytesPos;return b;};constructor.prototype.getCode=function(table){var codes=table[0];var maxLen=table[1];var codeSize=this.codeSize;var codeBuf=this.codeBuf;var bytes=this.bytes;var bytesPos=this.bytesPos;while(codeSize<maxLen){var b;if(typeof(b=bytes[bytesPos++])=='undefined')
3193error('Bad encoding in flate stream');codeBuf|=(b<<codeSize);codeSize+=8;}
3194var code=codes[codeBuf&((1<<maxLen)-1)];var codeLen=code>>16;var codeVal=code&0xffff;if(codeSize==0||codeSize<codeLen||codeLen==0)
3195error('Bad encoding in flate stream');this.codeBuf=(codeBuf>>
3195codeLen);this.codeSize=(codeSize-codeLen);this.bytesPos=bytesPos;return codeVal;};constructor.prototype.generateHuffmanTable=function(lengths){var n=lengths.length;var maxLen=0;for(var i=0;i<n;++i){if(lengths[i]>maxLen)
3196maxLen=lengths[i];}
3197var size=1<<maxLen;var codes=new Uint32Array(size);for(var len=1,code=0,skip=2;len<=maxLen;++len,code<<=1,skip<<=1){for(var val=0;val<n;++val){if(lengths[val]==len){var code2=0;var t=code;for(var i=0;i<len;++i){code2=(code2<<1)|(t&1);t>>=1;}
3198for(var i=code2;i<size;i+=skip)
3199codes[i]=(len<<16)|val;++code;}}}
3200return[codes,maxLen];};constructor.prototype.readBlock=function(){function repeat(stream,array,len,offset,what){var repeat=stream.getBits(len)+offset;while(repeat-->0)
3201array[i++]=what;}
3202var hdr=this.getBits(3);if(hdr&1)
3203this.eof=true;hdr>>=1;if(hdr==0){var bytes=this.bytes;var bytesPos=this.bytesPos;var b;if(typeof(b=bytes[bytesPos++])=='undefined')
3204error('Bad block header in flate stream');var blockLen=b;if(typeof(b=bytes[bytesPos++])=='undefined')
3205error('Bad block header in flate stream');blockLen|=(b<<8);if(typeof(b=bytes[bytesPos++])=='undefined')
3206error('Bad block header in flate stream');var check=b;if(typeof(b=bytes[bytesPos++])=='undefined')
3207error('Bad block header in flate stream');check|=(b<<8);if(check!=(~blockLen&0xffff))
3208error('Bad uncompressed block length in flate stream');this.codeBuf=0;
3208this.codeSize=0;var bufferLength=this.bufferLength;var buffer=this.ensureBuffer(bufferLength+blockLen);var end=bufferLength+blockLen;this.bufferLength=end;for(var n=bufferLength;n<end;++n){if(typeof(b=bytes[bytesPos++])=='undefined'){this.eof=true;break;}
3209buffer[n]=b;}
3210this.bytesPos=bytesPos;return;}
3211var litCodeTable;var distCodeTable;if(hdr==1){litCodeTable=fixedLitCodeTab;distCodeTable=fixedDistCodeTab;}else if(hdr==2){var numLitCodes=this.getBits(5)+257;var numDistCodes=this.getBits(5)+1;var numCodeLenCodes=this.getBits(4)+4;var codeLenCodeLengths=Array(codeLenCodeMap.length);var i=0;while(i<numCodeLenCodes)
3212codeLenCodeLengths[codeLenCodeMap[i++]]=this.getBits(3);var codeLenCodeTab=this.generateHuffmanTable(codeLenCodeLengths);var len=0;var i=0;var codes=numLitCodes+numDistCodes;var codeLengths=new Array(codes);while(i<codes){var code=this.getCode(codeLenCodeTab);if(code==16){repeat(this,codeLengths,2,3,len);}else if(code==17){repeat(this,codeLengths,3,3,len=0);}else if(code==18){repeat(this,codeLengths,7,11,len=0);}else{codeLengths[i++]=len=code;}}
3213litCodeTable=this.generateHuffmanTable(codeLengths.slice(0,numLitCodes));distCodeTable=this.generateHuffmanTable(codeLengths.slice(numLitCodes,codes));}else{error('Unknown block type in flate stream');}
3214var buffer=this.buffer;var limit=buffer?buffer.length:0;var pos=this.bufferLength;while(true){var code1=this.getCode(litCodeTable);if(code1<256){if(pos+1>=limit){buffer=this.ensureBuffer(pos+1);limit=buffer.length;}
3215buffer[pos++]=code1;continue;}
3216if(code1==256){this.bufferLength=pos;return;}
3217code1-=257;code1=lengthDecode[code1];var code2=code1>>16;if(code2>0)
3218code2=this.getBits(code2);var len=(code1&0xffff)+code2;code1=this.getCode(distCodeTable);code1=distDecode[code1];code2=code1>>16;if(code2>0)
3219code2=this.getBits(code2);var dist=(code1&0xffff)+code2;if(pos+len>=limit){buffer=this.ensureBuffer(pos+len);limit=buffer.length;}
3220for(var k=0;k<len;++k,++pos)
3221buffer[pos]=buffer[pos-dist];}};return constructor;})();(function(global){var b64='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';if(typeof global.btoa==='undefined'){global.btoa=function(data){var o1,o2,o3,h1,h2,h3,h4,bits,i=0,ac=0,enc='',tmp_arr=[];if(!data){return data;}
3222do{o1=data.charCodeAt(i++);o2=data.charCodeAt(i++);o3=data.charCodeAt(i++);bits=o1<<16|o2<<8|o3;h1=bits>>18&0x3f;h2=bits>>12&0x3f;h3=bits>>6&0x3f;h4=bits&0x3f;tmp_arr[ac++]=b64.charAt(h1)+b64.charAt(h2)+b64.charAt(h3)+b64.charAt(h4);}while(i<data.length);enc=tmp_arr.join('');var r=data.length%3;return(r?enc.slice(0,r-3):enc)+'==='.slice(r||3);};}
3223if(typeof global.atob==='undefined'){global.atob=function(data){var o1,o2,o3,h1,h2,h3,h4,bits,i=0,ac=0,dec='',tmp_arr=[];if(!data){return data;}
3224data+='';do{h1=b64.indexOf(data.charAt(i++));h2=b64.indexOf(data.charAt(i++));h3=b64.indexOf(data.charAt(i++));h4=b64.indexOf(data.charAt(i++));bits=h1<<18|h2<<12|h3<<6|h4;o1=bits>>16&0xff;o2=bits>>8&0xff;o3=bits&0xff;if(h3==64){tmp_arr[ac++]=String.fromCharCode(o1);}else if(h4==64){tmp_arr[ac++]=String.fromCharCode(o1,o2);}else{tmp_arr[ac++]=String.fromCharCode(o1,o2,o3);}}while(i<data.length);dec=tmp_arr.join('');return dec;};}
3225if(!Array.prototype.map){Array.prototype.map=function(fun){if(this===void 0||this===null||typeof fun!=="function")
3226throw new TypeError();var t=Object(this),len=t.length>>>0,res=new Array(len);var thisArg=arguments.length>1?arguments[1]:void 0;for(var i=0;i<len;i++){if(i in t)
3227res[i]=fun.call(thisArg,t[i],i,t);}
3228return res;};}
3229if(!Array.isArray){Array.isArray=function(arg){return Object.prototype.toString.call(arg)==='[object Array]';};}
3230if(!Array.prototype.forEach){Array.prototype.forEach=function(fun,thisArg){"use strict";if(this===void 0||this===null||typeof fun!=="function")
3231throw new TypeError();var t=Object(this),len=t.length>>>0;for(var i=0;i<len;i++){if(i in t)
3232fun.call(thisArg,t[i],i,t);}};}
3233if(!Object.keys){Object.keys=(function(){'use strict';var hasOwnProperty=Object.prototype.hasOwnProperty,hasDontEnumBug=!({toString:null}).propertyIsEnumerable('toString'),dontEnums=['toString','toLocaleString','valueOf','hasOwnProperty','isPrototypeOf','propertyIsEnumerable','constructor'],dontEnumsLength=dontEnums.length;
3233return function(obj){if(typeof obj!=='object'&&(typeof obj!=='function'||obj===null)){throw new TypeError();}
3234var result=[],prop,i;for(prop in obj){if(hasOwnProperty.call(obj,prop)){result.push(prop);}}
3235if(hasDontEnumBug){for(i=0;i<dontEnumsLength;i++){if(hasOwnProperty.call(obj,dontEnums[i])){result.push(dontEnums[i]);}}}
3236return result;};}());}
3237if(!String.prototype.trim){String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,'');};}
3238if(!String.prototype.trimLeft){String.prototype.trimLeft=function(){return this.replace(/^\s+/g,"");};}
3239if(!String.prototype.trimRight){String.prototype.trimRight=function(){return this.replace(/\s+$/g,"");};}})(typeof self!=="undefined"&&self||typeof window!=="undefined"&&window||this);;
3240/*! autotrack.js v1.1.0 */
3241!function t(e,i,n){function s(o,a){if(!i[o]){if(!e[o]){var l="function"==typeof require&&require;if(!a&&l)return l(o,!0);if(r)return r(o,!0);var h=new Error("Cannot find module '"+o+"'");throw h.code="MODULE_NOT_FOUND",h}var c=i[o]={exports:{}};e[o][0].call(c.exports,function(t){var i=e[o][1][t];return s(i?i:t)},c,c.exports,t,e,i,n)}return i[o].exports}for(var r="function"==typeof require&&require,o=0;o<n.length;o++)s(n[o]);return s}({1:[function(t,e,i){e.exports={VERSION:"1.0.0",DEV_ID:"i5iSjo",VERSION_PARAM:"&_av",USAGE_PARAM:"&_au",NULL_DIMENSION:"(not set)"}},{}],2:[function(t,e,i){function n(){console.error("Warning! Requiring the `autotrack` plugin no longer requires  all sub-plugins by default.\nSee https://goo.gl/XsXPg5 for details.")}var s=t("../provide");s("autotrack",n)},{"../provide":12}],3:[function(t,e,i){function n(t,e){l.track(t,l.plugins.CLEAN_URL_TRACKER),this.opts=s({stripQuery:!1,queryDimensionIndex:null,indexFilename:null,trailingSlash:null},e),this.tracker=t,this.overrideTrackerBuildHitTask()}var s=t("object-assign"),r=t("dom-utils/lib/parse-url"),o=t("../constants"),a=t("../provide"),l=t("../usage");n.prototype.cleanUrlTask=function(t){var e=t.get("location"),i=t.get("page"),n=r(i||e),s=n.pathname,a=s;if(this.opts.indexFilename){var l=a.split("/");this.opts.indexFilename==l[l.length-1]&&(l[l.length-1]="",a=l.join("/"))}if("remove"==this.opts.trailingSlash)a=a.replace(/\/+$/,"");else if("add"==this.opts.trailingSlash){var h=/\.\w+$/.test(a);h||"/"==a.substr(-1)||(a+="/")}this.opts.stripQuery&&this.opts.queryDimensionIndex&&t.set("dimension"+this.opts.queryDimensionIndex,n.query||o.NULL_DIMENSION),t.set("page",a+(this.opts.stripQuery?"":n.search))},n.prototype.overrideTrackerBuildHitTask=function(){this.originalTrackerBuildHitTask=this.tracker.get("buildHitTask"),this.tracker.set("buildHitTask",function(t){this.cleanUrlTask(t),this.originalTrackerBuildHitTask(t)}.bind(this))},n.prototype.remove=function(){this.tracker.set("sendHitTask",this.originalTrackerSendHitTask)},a("cleanUrlTracker",n)},{"../constants":1,"../provide":12,"../usage":13,"dom-utils/lib/parse-url":22,"object-assign":23}],4:[function(t,e,i){function n(t,e){if(a.track(t,a.plugins.EVENT_TRACKER),window.addEventListener){this.opts=s({events:["click"],fieldsObj:{},attributePrefix:"ga-",hitFilter:null},e),this.tracker=t,this.handleEvents=this.handleEvents.bind(this);var i="["+this.opts.attributePrefix+"on]";this.delegates={},this.opts.events.forEach(function(t){this.delegates[t]=r(document,t,i,this.handleEvents,{composed:!0,useCapture:!0})}.bind(this))}}var s=t("object-assign"),r=t("dom-utils/lib/delegate"),o=t("../provide"),a=t("../usage"),l=t("../utilities").createFieldsObj,h=t("../utilities").getAttributeFields;n.prototype.handleEvents=function(t,e){var i=this.opts.attributePrefix;if(t.type==e.getAttribute(i+"on")){var n={transport:"beacon"},r=h(e,i),o=s({},this.opts.fieldsObj,r),a=r.hitType||"event";this.tracker.send(a,l(n,o,this.tracker,this.opts.hitFilter,e))}},n.prototype.remove=function(){Object.keys(this.delegates).forEach(function(t){this.delegates[t].destroy()}.bind(this))},o("eventTracker",n)},{"../provide":12,"../usage":13,"../utilities":14,"dom-utils/lib/delegate":18,"object-assign":23}],5:[function(t,e,i){function n(t,e){l.track(t,l.plugins.IMPRESSION_TRACKER),window.IntersectionObserver&&window.MutationObserver&&(this.opts=o({elements:null,rootMargin:"0px",fieldsObj:{},attributePrefix:"ga-",hitFilter:null},e),this.tracker=t,this.handleDomMutations=this.handleDomMutations.bind(this),this.handleIntersectionChanges=this.handleIntersectionChanges.bind(this),this.handleDomElementAdded=this.handleDomElementAdded.bind(this),this.handleDomElementRemoved=this.handleDomElementRemoved.bind(this),this.items=[],this.elementMap={},this.thresholdMap={},c(function(){this.observeElements(this.opts.elements)}.bind(this)))}function s(t,e){if(0===t){var i=e.intersectionRect;return i.top>0||i.bottom>0||i.left>0||i.right>0}return e.intersectionRatio>=t}function r(t){return o({threshold:0,trackFirstImpressionOnly:!0},"string"==typeof t?{id:t}:t)}var o=t("object-assign"),a=t("../provide"),l=t("../usage"),h=t("../utilities").createFieldsObj,c=t("../utilities").domReady,d=t("../utilities").getAttributeFields;n.prototype.observeElements=function(t){var e=this.deriveDataFromElements(t);this.items=this.items.concat(e.items),this.elementMap=o({},e.elementMap,this.elementMap),this.thresholdMap=o({}
3241,e.thresholdMap,this.thresholdMap),e.items.forEach(function(t){var e=this.thresholdMap[t.threshold]=this.thresholdMap[t.threshold]||new IntersectionObserver(this.handleIntersectionChanges,{rootMargin:this.opts.rootMargin,threshold:[+t.threshold]}),i=this.elementMap[t.id]||(this.elementMap[t.id]=document.getElementById(t.id));i&&e.observe(i)}.bind(this)),this.mutationObserver||(this.mutationObserver=new MutationObserver(this.handleDomMutations),this.mutationObserver.observe(document.body,{childList:!0,subtree:!0})),requestAnimationFrame(function(){})},n.prototype.unobserveElements=function(t){var e=[],i=[];if(this.items.forEach(function(n){var s=t.some(function(t){var e=r(t);return e.id===n.id&&e.threshold===n.threshold&&e.trackFirstImpressionOnly===n.trackFirstImpressionOnly});s?i.push(n):e.push(n)}),!e.length)return this.unobserveAllElements();var n=this.deriveDataFromElements(e),s=this.deriveDataFromElements(i);this.items=n.items,this.elementMap=n.elementMap,this.thresholdMap=n.thresholdMap,i.forEach(function(t){if(!n.elementMap[t.id]){var e=s.thresholdMap[t.threshold],i=s.elementMap[t.id];i&&e.unobserve(i),n.thresholdMap[t.threshold]||s.thresholdMap[t.threshold].disconnect()}})},n.prototype.unobserveAllElements=function(){Object.keys(this.thresholdMap).forEach(function(t){this.thresholdMap[t].disconnect()}.bind(this)),this.mutationObserver.disconnect(),this.mutationObserver=null,this.items=[],this.elementMap={},this.thresholdMap={}},n.prototype.deriveDataFromElements=function(t){var e=[],i={},n={};return t.length&&t.forEach(function(t){var s=r(t);e.push(s),n[s.id]=this.elementMap[s.id]||null,i[s.threshold]=this.thresholdMap[s.threshold]||null}.bind(this)),{items:e,elementMap:n,thresholdMap:i}},n.prototype.observeElement=function(t){var e=this.elementMap[t]||(this.elementMap[t]=document.getElementById(t));e&&this.intersectionObserver.observe(e)},n.prototype.handleDomMutations=function(t){for(var e,i=0;e=t[i];i++){for(var n,s=0;n=e.removedNodes[s];s++)this.walkNodeTree(n,this.handleDomElementRemoved);for(var r,o=0;r=e.addedNodes[o];o++)this.walkNodeTree(r,this.handleDomElementAdded)}},n.prototype.walkNodeTree=function(t,e){1==t.nodeType&&t.id in this.elementMap&&e(t.id);for(var i,n=0;i=t.childNodes[n];n++)this.walkNodeTree(i,e)},n.prototype.handleIntersectionChanges=function(t){for(var e,i=[],n=0;e=t[n];n++)for(var r,o=0;r=this.items[o];o++)e.target.id===r.id&&s(r.threshold,e)&&(this.handleImpression(r.id),r.trackFirstImpressionOnly&&i.push(r));i.length&&this.unobserveElements(i)},n.prototype.handleImpression=function(t){var e=document.getElementById(t),i={transport:"beacon",eventCategory:"Viewport",eventAction:"impression",eventLabel:t},n=o({},this.opts.fieldsObj,d(e,this.opts.attributePrefix));this.tracker.send("event",h(i,n,this.tracker,this.opts.hitFilter,e))},n.prototype.handleDomElementAdded=function(t){var e=this.elementMap[t]=document.getElementById(t);this.items.forEach(function(i){t==i.id&&this.thresholdMap[i.threshold].observe(e)}.bind(this))},n.prototype.handleDomElementRemoved=function(t){var e=this.elementMap[t];this.items.forEach(function(i){t==i.id&&this.thresholdMap[i.threshold].unobserve(e)}.bind(this)),this.elementMap[t]=null},n.prototype.remove=function(){this.unobserveAllElements()},a("impressionTracker",n)},{"../provide":12,"../usage":13,"../utilities":14,"object-assign":23}],6:[function(t,e,i){function n(t,e){h.track(t,h.plugins.MEDIA_QUERY_TRACKER),window.matchMedia&&(this.opts=r({definitions:null,changeTemplate:this.changeTemplate,changeTimeout:1e3,fieldsObj:{},hitFilter:null},e),d(this.opts.definitions)&&(this.opts.definitions=u(this.opts.definitions),this.tracker=t,this.changeListeners=[],this.processMediaQueries()))}function s(t){return p[t]?p[t]:(p[t]=window.matchMedia(t),p[t])}var r=t("object-assign"),o=t("debounce"),a=t("../constants"),l=t("../provide"),h=t("../usage"),c=t("../utilities").createFieldsObj,d=t("../utilities").isObject,u=t("../utilities").toArray,p={};n.prototype.processMediaQueries=function(){this.opts.definitions.forEach(function(t){if(t.name&&t.dimensionIndex){var e=this.getMatchName(t);this.tracker.set("dimension"+t.dimensionIndex,e),this.addChangeListeners(t)}}.bind(this))},n.prototype.getMatchName=function(t){var e;
3241return t.items.forEach(function(t){s(t.media).matches&&(e=t)}),e?e.name:a.NULL_DIMENSION},n.prototype.addChangeListeners=function(t){t.items.forEach(function(e){var i=s(e.media),n=o(function(){this.handleChanges(t)}.bind(this),this.opts.changeTimeout);i.addListener(n),this.changeListeners.push({mql:i,fn:n})}.bind(this))},n.prototype.handleChanges=function(t){var e=this.getMatchName(t),i=this.tracker.get("dimension"+t.dimensionIndex);if(e!==i){this.tracker.set("dimension"+t.dimensionIndex,e);var n={eventCategory:t.name,eventAction:"change",eventLabel:this.opts.changeTemplate(i,e)};this.tracker.send("event",c(n,this.opts.fieldsObj,this.tracker,this.opts.hitFilter))}},n.prototype.remove=function(){for(var t,e=0;t=this.changeListeners[e];e++)t.mql.removeListener(t.fn)},n.prototype.changeTemplate=function(t,e){return t+" => "+e},l("mediaQueryTracker",n)},{"../constants":1,"../provide":12,"../usage":13,"../utilities":14,debounce:16,"object-assign":23}],7:[function(t,e,i){function n(t,e){l.track(t,l.plugins.OUTBOUND_FORM_TRACKER),window.addEventListener&&(this.opts=s({formSelector:"form",shouldTrackOutboundForm:this.shouldTrackOutboundForm,fieldsObj:{},attributePrefix:"ga-",hitFilter:null},e),this.tracker=t,this.delegate=r(document,"submit","form",this.handleFormSubmits.bind(this),{composed:!0,useCapture:!0}))}var s=t("object-assign"),r=t("dom-utils/lib/delegate"),o=t("dom-utils/lib/parse-url"),a=t("../provide"),l=t("../usage"),h=t("../utilities").createFieldsObj,c=t("../utilities").getAttributeFields,d=t("../utilities").withTimeout;n.prototype.handleFormSubmits=function(t,e){var i=o(e.action).href,n={transport:"beacon",eventCategory:"Outbound Form",eventAction:"submit",eventLabel:i};if(this.opts.shouldTrackOutboundForm(e,o)){navigator.sendBeacon||(t.preventDefault(),n.hitCallback=d(function(){e.submit()}));var r=s({},this.opts.fieldsObj,c(e,this.opts.attributePrefix));this.tracker.send("event",h(n,r,this.tracker,this.opts.hitFilter,e))}},n.prototype.shouldTrackOutboundForm=function(t,e){var i=e(t.action);return i.hostname!=location.hostname&&"http"==i.protocol.slice(0,4)},n.prototype.remove=function(){this.delegate.destroy()},a("outboundFormTracker",n)},{"../provide":12,"../usage":13,"../utilities":14,"dom-utils/lib/delegate":18,"dom-utils/lib/parse-url":22,"object-assign":23}],8:[function(t,e,i){function n(t,e){l.track(t,l.plugins.OUTBOUND_LINK_TRACKER),window.addEventListener&&(this.opts=s({events:["click"],linkSelector:"a, area",shouldTrackOutboundLink:this.shouldTrackOutboundLink,fieldsObj:{},attributePrefix:"ga-",hitFilter:null},e),this.tracker=t,this.handleLinkInteractions=this.handleLinkInteractions.bind(this),this.delegates={},this.opts.events.forEach(function(t){this.delegates[t]=r(document,t,this.opts.linkSelector,this.handleLinkInteractions,{composed:!0,useCapture:!0})}.bind(this)))}var s=t("object-assign"),r=t("dom-utils/lib/delegate"),o=t("dom-utils/lib/parse-url"),a=t("../provide"),l=t("../usage"),h=t("../utilities").createFieldsObj,c=t("../utilities").getAttributeFields;n.prototype.handleLinkInteractions=function(t,e){if(this.opts.shouldTrackOutboundLink(e,o)){navigator.sendBeacon||(e.target="_blank");var i=e.getAttribute("href")||e.getAttribute("xlink:href"),n=o(i),r={transport:"beacon",eventCategory:"Outbound Link",eventAction:t.type,eventLabel:n.href},a=s({},this.opts.fieldsObj,c(e,this.opts.attributePrefix));this.tracker.send("event",h(r,a,this.tracker,this.opts.hitFilter,e))}},n.prototype.shouldTrackOutboundLink=function(t,e){var i=t.getAttribute("href")||t.getAttribute("xlink:href"),n=e(i);return n.hostname!=location.hostname&&"http"==n.protocol.slice(0,4)},n.prototype.remove=function(){Object.keys(this.delegates).forEach(function(t){this.delegates[t].destroy()}.bind(this))},a("outboundLinkTracker",n)},{"../provide":12,"../usage":13,"../utilities":14,"dom-utils/lib/delegate":18,"dom-utils/lib/parse-url":22,"object-assign":23}],9:[function(t,e,i){function n(t,e){o.track(t,o.plugins.PAGE_VISIBILITY_TRACKER),window.addEventListener&&(this.opts=s({sessionTimeout:h,changeTemplate:this.changeTemplate,hiddenMetricIndex:null,visibleMetricIndex:null,fieldsObj:{},hitFilter:null},e),this.tracker=t,this.visibilityState=document.visibilityState,this.lastVisibilityChangeTime=+new Date,this.handleVisibilityStateChange=this.handleVisibilityStateChange.bind(this),this.overrideTrackerSendMethod(),this.overrideTrackerSendHitTask(),document.addEventListener("visibilitychange",this.handleVisibilityStateChange))}var s=t("object-assign"),r=t("../provide"),o=t("../usage"),a=t("../utilities").createFieldsObj,l=t("../utilities").isObject,h=30;n.prototype.handleVisibilityStateChange=function(){var t;if(this.prevVisibilityState=this.visibilityState,this.visibilityState=document.visibilityState,this.sessionHasTimedOut()){if("hidden"==this.visibilityState)return;"visible"==this.visibilityState&&(t={transport:"beacon"},this.tracker.send("pageview",a(t,this.opts.fieldsObj,this.tracker,this.opts.hitFilter)))}else{var e=Math.round((new Date-this.lastVisibilityChangeTime)/1e3)||1;t={transport:"beacon",eventCategory:"Page Visibility",eventAction:"change",eventLabel:this.opts.changeTemplate(this.prevVisibilityState,this.visibilityState),eventValue:e},"hidden"==this.visibilityState&&(t.nonInteraction=!0);var i=this.opts[this.prevVisibilityState+"MetricIndex"];i&&(t["metric"+i]=e),this.tracker.send("event",a(t,this.opts.fieldsObj,this.tracker,this.opts.hitFilter))}this.lastVisibilityChangeTime=+new Date},n.prototype.sessionHasTimedOut=function(){var t=(new Date-this.lastHitTime)/6e4;return this.opts.sessionTimeout<t},n.prototype.overrideTrackerSendMethod=function(){this.originalTrackerSendMethod=this.tracker.send,this.tracker.send=function(){var t=Array.prototype.slice.call(arguments),e=t[0],i=l(e)?e.hitType:e,n="pageview"==i;if(!n&&this.sessionHasTimedOut()){var s={transport:"beacon"};this.originalTrackerSendMethod.call(this.tracker,"pageview",a(s,this.opts.fieldsObj,this.tracker,this.opts.hitFilter))}this.originalTrackerSendMethod.apply(this.tracker,t)}.bind(this)},n.prototype.overrideTrackerSendHitTask=function(){this.originalTrackerSendHitTask=this.tracker.get("sendHitTask"),this.lastHitTime=+new Date,this.tracker.set("sendHitTask",function(t){this.originalTrackerSendHitTask(t),this.lastHitTime=+new Date}.bind(this))},n.prototype.changeTemplate=function(t,e){return t+" => "+e},n.prototype.remove=function(){this.tracker.set("sendHitTask",this.originalTrackerSendHitTask),this.tracker.send=this.originalTrackerSendMethod,document.removeEventListener("visibilitychange",this.handleVisibilityStateChange)},r("pageVisibilityTracker",n)},{"../provide":12,"../usage":13,"../utilities":14,"object-assign":23}
3241],10:[function(t,e,i){function n(t,e){o.track(t,o.plugins.SOCIAL_WIDGET_TRACKER),window.addEventListener&&(this.opts=s({fieldsObj:{},hitFilter:null},e),this.tracker=t,this.addWidgetListeners=this.addWidgetListeners.bind(this),this.addTwitterEventHandlers=this.addTwitterEventHandlers.bind(this),this.handleTweetEvents=this.handleTweetEvents.bind(this),this.handleFollowEvents=this.handleFollowEvents.bind(this),this.handleLikeEvents=this.handleLikeEvents.bind(this),this.handleUnlikeEvents=this.handleUnlikeEvents.bind(this),"complete"!=document.readyState?window.addEventListener("load",this.addWidgetListeners):this.addWidgetListeners())}var s=t("object-assign"),r=t("../provide"),o=t("../usage"),a=t("../utilities").createFieldsObj;n.prototype.addWidgetListeners=function(){window.FB&&this.addFacebookEventHandlers(),window.twttr&&this.addTwitterEventHandlers()},n.prototype.addTwitterEventHandlers=function(){try{twttr.ready(function(){twttr.events.bind("tweet",this.handleTweetEvents),twttr.events.bind("follow",this.handleFollowEvents)}.bind(this))}catch(t){}},n.prototype.removeTwitterEventHandlers=function(){try{twttr.ready(function(){twttr.events.unbind("tweet",this.handleTweetEvents),twttr.events.unbind("follow",this.handleFollowEvents)}.bind(this))}catch(t){}},n.prototype.addFacebookEventHandlers=function(){try{FB.Event.subscribe("edge.create",this.handleLikeEvents),FB.Event.subscribe("edge.remove",this.handleUnlikeEvents)}catch(t){}},n.prototype.removeFacebookEventHandlers=function(){try{FB.Event.unsubscribe("edge.create",this.handleLikeEvents),FB.Event.unsubscribe("edge.remove",this.handleUnlikeEvents)}catch(t){}},n.prototype.handleTweetEvents=function(t){if("tweet"==t.region){var e=t.data.url||t.target.getAttribute("data-url")||location.href,i={transport:"beacon",socialNetwork:"Twitter",socialAction:"tweet",socialTarget:e};this.tracker.send("social",a(i,this.opts.fieldsObj,this.tracker,this.opts.hitFilter))}}
3241,n.prototype.handleFollowEvents=function(t){if("follow"==t.region){var e=t.data.screen_name||t.target.getAttribute("data-screen-name"),i={transport:"beacon",socialNetwork:"Twitter",socialAction:"follow",socialTarget:e};this.tracker.send("social",a(i,this.opts.fieldsObj,this.tracker,this.opts.hitFilter))}},n.prototype.handleLikeEvents=function(t){var e={transport:"beacon",socialNetwork:"Facebook",socialAction:"like",socialTarget:t};this.tracker.send("social",a(e,this.opts.fieldsObj,this.tracker,this.opts.hitFilter))},n.prototype.handleUnlikeEvents=function(t){var e={transport:"beacon",socialNetwork:"Facebook",socialAction:"unlike",socialTarget:t};this.tracker.send("social",a(e,this.opts.fieldsObj,this.tracker,this.opts.hitFilter))},n.prototype.remove=function(){window.removeEventListener("load",this.addWidgetListeners),this.removeFacebookEventHandlers(),this.removeTwitterEventHandlers()},r("socialWidgetTracker",n)},{"../provide":12,"../usage":13,"../utilities":14,"object-assign":23}],11:[function(t,e,i){function n(t,e){a.track(t,a.plugins.URL_CHANGE_TRACKER),history.pushState&&window.addEventListener&&(this.opts=r({shouldTrackUrlChange:this.shouldTrackUrlChange,fieldsObj:{},hitFilter:null},e),this.tracker=t,this.path=s(),this.updateTrackerData=this.updateTrackerData.bind(this),this.originalPushState=history.pushState,history.pushState=function(t,e){h(t)&&e&&(t.title=e),this.originalPushState.apply(history,arguments),this.updateTrackerData()}.bind(this),this.originalReplaceState=history.replaceState,history.replaceState=function(t,e){h(t)&&e&&(t.title=e),this.originalReplaceState.apply(history,arguments),this.updateTrackerData(!1)}.bind(this),window.addEventListener("popstate",this.updateTrackerData))}function s(){return location.pathname+location.search}var r=t("object-assign"),o=t("../provide"),a=t("../usage"),l=t("../utilities").createFieldsObj,h=t("../utilities").isObject;n.prototype.updateTrackerData=function(t){t=t!==!1,setTimeout(function(){var e=this.path,i=s();if(e!=i&&this.opts.shouldTrackUrlChange.call(this,i,e)&&(this.path=i,this.tracker.set({page:i,title:h(history.state)&&history.state.title||document.title}),t)){var n={transport:"beacon"};this.tracker.send("pageview",l(n,this.opts.fieldsObj,this.tracker,this.opts.hitFilter))}}.bind(this),0)},n.prototype.shouldTrackUrlChange=function(t,e){return t&&e},n.prototype.remove=function(){window.removeEventListener("popstate",this.updateTrackerData),history.replaceState=this.originalReplaceState,history.pushState=this.originalPushState,this.tracker=null,this.opts=null,this.path=null,this.updateTrackerData=null,this.originalReplaceState=null,this.originalPushState=null},o("urlChangeTracker",n)},{"../provide":12,"../usage":13,"../utilities":14,"object-assign":23}],12:[function(t,e,i){var n=t("./constants"),s=t("./utilities");(window.gaDevIds=window.gaDevIds||[]).push(n.DEV_ID),e.exports=function(t,e){var i=window.GoogleAnalyticsObject||"ga";window[i]=window[i]||function(){(window[i].q=window[i].q||[]).push(arguments)},window[i]("provide",t,e),window.gaplugins=window.gaplugins||{},window.gaplugins[s.capitalize(t)]=e}},{"./constants":1,"./utilities":14}],13:[function(t,e,i){function n(t){return parseInt(t||"0",16).toString(2)}function s(t){return parseInt(t||"0",2).toString(16)}function r(t,e){if(t.length<e)for(var i=e-t.length;i;)t="0"+t,i--;return t}function o(t,e){return t.substr(0,e)+1+t.substr(e+1)}function a(t,e){var i=t.get(h.USAGE_PARAM),a=r(n(i),d);a=o(a,d-e),t.set(h.USAGE_PARAM,s(a))}function l(t){t.set(h.VERSION_PARAM,h.VERSION)}var h=t("./constants"),c={CLEAN_URL_TRACKER:1,EVENT_TRACKER:2,IMPRESSION_TRACKER:3,MEDIA_QUERY_TRACKER:4,OUTBOUND_FORM_TRACKER:5,OUTBOUND_LINK_TRACKER:6,PAGE_VISIBILITY_TRACKER:7,SOCIAL_WIDGET_TRACKER:8,URL_CHANGE_TRACKER:9},d=9;e.exports={track:function(t,e){l(t),a(t,e)},plugins:c}},{"./constants":1}],14:[function(t,e,i){var n=t("object-assign"),s=t("dom-utils/lib/get-attributes"),r={createFieldsObj:function(t,e,i,s,r){if("function"==typeof s){var o=i.get("buildHitTask");return{buildHitTask:function(i){i.set(t,null,!0),i.set(e,null,!0),s(i,r),o(i)}}}return n({},t,e)},getAttributeFields:function(t,e){var i=s(t),n={};
3241return Object.keys(i).forEach(function(t){if(0===t.indexOf(e)&&t!=e+"on"){var s=i[t];"true"==s&&(s=!0),"false"==s&&(s=!1);var o=r.camelCase(t.slice(e.length));n[o]=s}}),n},domReady:function(t){"loading"==document.readyState?document.addEventListener("DOMContentLoaded",function e(){document.removeEventListener("DOMContentLoaded",e),t()}):t()},withTimeout:function(t,e){var i=!1,n=function(){i||(i=!0,t())};return setTimeout(n,e||2e3),n},camelCase:function(t){return t.replace(/[\-\_]+(\w?)/g,function(t,e){return e.toUpperCase()})},capitalize:function(t){return t.charAt(0).toUpperCase()+t.slice(1)},isObject:function(t){return"object"==typeof t&&null!==t},isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},toArray:function(t){return r.isArray(t)?t:[t]}};e.exports=r},{"dom-utils/lib/get-attributes":19,"object-assign":23}],15:[function(t,e,i){function n(){return(new Date).getTime()}e.exports=Date.now||n},{}],16:[function(t,e,i){var n=t("date-now");e.exports=function(t,e,i){function s(){var c=n()-l;c<e&&c>0?r=setTimeout(s,e-c):(r=null,i||(h=t.apply(a,o),r||(a=o=null)))}var r,o,a,l,h;return null==e&&(e=100),function(){a=this,o=arguments,l=n();var c=i&&!r;return r||(r=setTimeout(s,e)),c&&(h=t.apply(a,o),a=o=null),h}}},{"date-now":15}],17:[function(t,e,i){var n=t("./matches"),s=t("./parents");e.exports=function(t,e,i){if(t&&1==t.nodeType&&e)for(var r,o=(i?[t]:[]).concat(s(t)),a=0;r=o[a];a++)if(n(r,e))return r}},{"./matches":20,"./parents":21}],18:[function(t,e,i){var n=t("./closest"),s=t("./matches");e.exports=function(t,e,i,r,o){o=o||{};var a=function(t){if(o.composed&&"function"==typeof t.composedPath)for(var e,a=t.composedPath(),l=0;e=a[l];l++)1==e.nodeType&&s(e,i)&&(h=e);else var h=n(t.target,i,!0);h&&r.call(h,t,h)};return t.addEventListener(e,a,o.useCapture),{destroy:function(){t.removeEventListener(e,a,o.useCapture)}}}},{"./closest":17,"./matches":20}],19:[function(t,e,i){e.exports=function(t){var e={};if(!t||1!=t.nodeType)return e;var i=t.attributes;if(0===i.length)return{};for(var n,s=0;n=i[s];s++)e[n.name]=n.value;return e}},{}],20:[function(t,e,i){function n(t,e){if("string"!=typeof e)return!1;if(r)return r.call(t,e);for(var i,n=t.parentNode.querySelectorAll(e),s=0;i=n[s];s++)if(i==t)return!0;return!1}var s=window.Element.prototype,r=s.matches||s.matchesSelector||s.webkitMatchesSelector||s.mozMatchesSelector||s.msMatchesSelector||s.oMatchesSelector;e.exports=function(t,e){if(t&&1==t.nodeType&&e){if("string"==typeof e||1==e.nodeType)return t==e||n(t,e);if("length"in e)for(var i,s=0;i=e[s];s++)if(t==i||n(t,i))return!0}return!1}},{}],21:[function(t,e,i){e.exports=function(t){for(var e=[];t&&t.parentNode&&1==t.parentNode.nodeType;)e.push(t=t.parentNode);return e}},{}],22:[function(t,e,i){var n="80",s="443",r=RegExp(":("+n+"|"+s+")$"),o=document.createElement("a"),a={};e.exports=function t(e){if(e=e&&"."!=e?e:location.href,a[e])return a[e];if(o.href=e,"."==e.charAt(0))return t(o.href);var i=o.protocol&&":"!=o.protocol?o.protocol:location.protocol,l=o.port==n||o.port==s?"":o.port;l="0"==l?"":l;var h=""==o.host?location.host:o.host,c=""==o.hostname?location.hostname:o.hostname;
3241h=h.replace(r,"");var d=o.origin?o.origin:i+"//"+h,u="/"==o.pathname.charAt(0)?o.pathname:"/"+o.pathname;return a[e]={hash:o.hash,host:h,hostname:c,href:o.href,origin:d,pathname:u,port:l,protocol:i,search:o.search,fragment:o.hash.slice(1),path:u+o.search,query:o.search.slice(1)}}},{}],23:[function(t,e,i){"use strict";function n(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function s(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},i=0;i<10;i++)e["_"+String.fromCharCode(i)]=i;var n=Object.getOwnPropertyNames(e).map(function(t){return e[t]});if("0123456789"!==n.join(""))return!1;var s={};return"abcdefghijklmnopqrst".split("").forEach(function(t){s[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},s)).join("")}catch(t){return!1}}var r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=s()?Object.assign:function(t,e){for(var i,s,a=n(t),l=1;l<arguments.length;l++){i=Object(arguments[l]);for(var h in i)r.call(i,h)&&(a[h]=i[h]);if(Object.getOwnPropertySymbols){s=Object.getOwnPropertySymbols(i);for(var c=0;c<s.length;c++)o.call(i,s[c])&&(a[s[c]]=i[s[c]])}}return a}},{}],24:[function(t,e,i){t("./plugins/clean-url-tracker"),t("./plugins/event-tracker"),t("./plugins/impression-tracker"),t("./plugins/media-query-tracker"),t("./plugins/outbound-form-tracker"),t("./plugins/outbound-link-tracker"),t("./plugins/page-visibility-tracker"),t("./plugins/social-widget-tracker"),t("./plugins/url-change-tracker"),t("./plugins/autotrack")},{"./plugins/autotrack":2,"./plugins/clean-url-tracker":3,"./plugins/event-tracker":4,"./plugins/impression-tracker":5,"./plugins/media-query-tracker":6,"./plugins/outbound-form-tracker":7,"./plugins/outbound-link-tracker":8,"./plugins/page-visibility-tracker":9,"./plugins/social-widget-tracker":10,"./plugins/url-change-tracker":11}]},{},[24]);(function(){if(typeof Editor==='undefined')return;function getBucket(len){if(len<=1)return{cls:'wc-slen-single',label:'single'};if(len<=6)return{cls:'wc-slen-short',label:'short'};if(len<=15)return{cls:'wc-slen-normal',label:'normal'};if(len<=25)return{cls:'wc-slen-medium',label:'medium'};if(len<=39)return{cls:'wc-slen-long',label:'long'};return{cls:'wc-slen-very-long',label:'very-long'};}
3242function escapeHtml(text){if(!text)return'';return text.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;");}
3243function gcShouldBreakAtPeriod(text,index){var len=text.length;var prev=index>0?text[index-1]:"";var nextIndex=index+1;while(nextIndex<len&&/['"“”‘’)\]}»]/.test(text[nextIndex]))nextIndex++;var next=nextIndex<len?text[nextIndex]:"";if(/[a-z]/.test(prev)&&/[A-Z]/.test(next))return true;if(/\d/.test(prev)&&/\d/.test(next))return false;if(/[A-Za-z]/.test(prev)&&/[A-Za-z]/.test(next))return false;var snippet=text.slice(Math.max(0,index-10),index+1).toLowerCase();var abbrRegex=/\b(?:e\.g|i\.e|etc|vs|cf|mr|mrs|ms|dr|prof|st|a\.m|p\.m)\.$/;if(abbrRegex.test(snippet)){if(next&&!/\s/.test(next))return false;}
3244return true;}
3245function gcSplitTextIntoSentenceRanges(text){var ranges=[];var full=String(text||"");if(!full)return ranges;var len=full.length;var re=/[.!?]+(?:['"’”)\]}»]+)?(?=(?:\s+|$|[A-Z]))/g;var m;var prevEnd=0;function addRange(start,end){if(start>=end)return;var rawSlice=full.slice(start,end);var match=rawSlice.match(/^(\s*)(.*)/s);var leadingSpace=match[1]||'';var content=match[2]||'';var contentMatch=content.match(/^(.*?)(\s*)$/s);var coreText=contentMatch[1]||'';var trailingSpace=contentMatch[2]||'';var clean=coreText.replace(/[,;.!:—\/]/g,' ').replace(/[^a-zA-Z\d\s&:]/g,'');var wCount=clean.match(/\S+/g);wCount=wCount?wCount.length:0;if(wCount>0){ranges.push({lead:leadingSpace,core:coreText,trail:trailingSpace,count:wCount,bucket:getBucket(wCount)});}else{ranges.push({lead:rawSlice,core:'',trail:'',count:0,bucket:null});}}
3246while((m=re.exec(full))!==null){var matchStr=m[0];var matchIndex=m.index;var boundaryEnd=matchIndex+matchStr.length;if(matchStr.includes('.')){var lastDotIndex=matchIndex+matchStr.lastIndexOf('.');if(!gcShouldBreakAtPeriod(full,lastDotIndex))continue;}
3247addRange(prevEnd,boundaryEnd);prevEnd=boundaryEnd;}
3248if(prevEnd<len)addRange(prevEnd,len);return ranges;}
3249Editor.prototype.calculateFlowScore=function(){if(!$('#slToggle').prop('checked')){this.setWidgetState('off');return;}
3250var text=this.box.val();var ranges=gcSplitTextIntoSentenceRanges(text);var sentencesData=ranges.filter(function(r){return r.bucket!==null;});if(sentencesData.length===0){this.setWidgetState('empty');return;}
3251this.setWidgetState('active');var score=this.computeAlgorithmScore(sentencesData);this.updateFlowUI(score,sentencesData);this.renderFlowHighlights(ranges);};Editor.prototype.setWidgetState=function(state){var $overlay=$('#wc-flow-overlay');var $textarea=this.box;var $container=$textarea.parent();if(state==='off'){$('#sl-flow-row').hide();$('#sl-legend').hide();$('#sl-flow-tips').hide();$('#sl-flow-empty').hide();$('body').removeClass('wc-highlights-active');if($overlay.length)$overlay.hide().html('');}
3252else if(state==='empty'){$('#sl-flow-empty').show();$('#sl-flow-row').hide();$('#sl-legend').hide();$('#sl-flow-tips').hide();$('#wc-flow-overlay').html('');$('body').removeClass('wc-highlights-active');}
3253else if(state==='active'){$('#sl-flow-empty').hide();$('#sl-flow-row').show();$('#sl-legend').css('display','flex');$('body').addClass('wc-highlights-active');if($overlay.length===0){$overlay=$('<div id="wc-flow-overlay"></div>');$container.prepend($overlay);}
3254$overlay.show();this.syncFlowOverlay();}};Editor.prototype.computeAlgorithmScore=function(sentences){var n=sentences.length;if(n===0)return 0;if(n===1)return 100;var lengths=sentences.map(function(s){return s.count;});var allExactSame=true;for(var i=1;i<n;i++)if(lengths[i]!==lengths[0]){allExactSame=false;break;}
3255if(allExactSame)return 0;var mean=lengths.reduce(function(a,b){return a+b;},0)/n;var NEAR_DELTA=Math.max(1,Math.round(mean*0.10));if(n<=3){var allNear=true;for(var k=0;k<n;k++)if(Math.abs(lengths[k]-lengths[0])>NEAR_DELTA){allNear=false;break;}
3256return allNear?70:100;}
3257var variance=0;for(var j=0;j<n;j++)variance+=Math.pow(lengths[j]-mean,2);variance/=n;var std=Math.sqrt(variance);var cv=std/(mean||1);var vGlobal=Math.max(0,Math.min(1,cv/1.0));var diffSum=0;for(var d=1;d<n;d++)diffSum+=Math.abs(lengths[d]-lengths[d-1]);var avgDiff=diffSum/(n-1);var diffNorm=Math.min(1,avgDiff/(mean||1));if(diffNorm>1)diffNorm=1;var shortCutoff=Math.max(4,Math.round(mean*0.7));var flips=0;for(var f=1;f<n;f++){var prevShort=lengths[f-1]<=shortCutoff;var currShort=lengths[f]<=shortCutoff;if(prevShort!==currShort)flips++;}
3258var flipNorm=(n>1)?(flips/(n-1)):0;var vLocal=Math.max(0,Math.min(1,0.5*diffNorm+0.5*flipNorm));var maxRun=1;var curRun=1;for(var r=1;r<n;r++){if(Math.abs(lengths[r]-lengths[r-1])<=NEAR_DELTA)curRun++;else{if(curRun>maxRun)maxRun=curRun;curRun=1;}}
3259if(curRun>maxRun)maxRun=curRun;var FREE_RUN=4;var runFactor;if(maxRun<=FREE_RUN){runFactor=1;}else{var excess=maxRun-FREE_RUN;runFactor=Math.exp(-0.4*excess);}
3260var score01=0.30*vGlobal+0.30*vLocal+0.40*runFactor;if(score01>0.90)score01=1.0;return Math.round(Math.max(0,Math.min(1,score01))*100);};Editor.prototype.syncFlowOverlay=function(){var $textarea=this.box;var $overlay=$('#wc-flow-overlay');if(!$textarea.length||!$overlay.length)return;var styles=window.getComputedStyle($textarea[0]);var scrollbarWidth=$textarea[0].offsetWidth-$textarea[0].clientWidth-parseFloat(styles.borderLeftWidth)-parseFloat(styles.borderRightWidth);var paddingRight=parseFloat(styles.paddingRight);$overlay.css({'width':$textarea.outerWidth()+'px','height':$textarea.outerHeight()+'px','font-family':styles.fontFamily,'font-size':styles.fontSize,'font-weight':styles.fontWeight,'line-height':styles.lineHeight,'letter-spacing':styles.letterSpacing,'white-space':'pre-wrap','word-wrap':'break-word','overflow-wrap':'break-word','text-align':styles.textAlign,'padding-top':styles.paddingTop,'padding-right':(paddingRight+scrollbarWidth)+'px','padding-bottom':styles.paddingBottom,'padding-left':styles.paddingLeft,'box-sizing':styles.boxSizing,'margin-top':styles.marginTop,'margin-bottom':styles.marginBottom,'border-width':styles.borderWidth,'border-style':'solid','border-color':'transparent'});$overlay.scrollTop($textarea.scrollTop());};Editor.prototype.updateFlowUI=function(score,data){$('#sl-flow-value').text(score+'%');$('#sl-flow-bar-fill').css('width',score+'%');var tips=[];var run=1,monotonyDetected=false;for(var i=1;i<data.length;i++){if(data[i].bucket.label===data[i-1].bucket.label){run++;if(run>=5){monotonyDetected=true;break;}}else{run=1;}}
3261if(monotonyDetected)tips.push("You have five or more sentences of similar length in a row. Break them up for variety.");if(score<70&&data.length>=2)tips.push("Mix short, medium, and long sentences to improve flow and please the reader’s ear.");var $tipsList=$('#sl-flow-tips');
3261if(tips.length>0){$tipsList.html('');tips.forEach(function(t){$tipsList.append('<li>'+t+'</li>');});$tipsList.show();}else{$tipsList.hide();}};Editor.prototype.renderFlowHighlights=function(ranges){var html='';for(var i=0;i<ranges.length;i++){var r=ranges[i];if(r.bucket){if(r.lead)html+=escapeHtml(r.lead);html+='<span class="'+r.bucket.cls+'">'+escapeHtml(r.core)+'</span>';if(r.trail)html+=escapeHtml(r.trail);}else{html+=escapeHtml(r.lead);}}
3262html+='<br>';var $overlay=$('#wc-flow-overlay');$overlay.html(html);this.syncFlowOverlay();};Editor.prototype.flowScorePanel=function(){var isVisible=(this.optionsObject.flowScorePanel!==false);$("#show-flow-score").prop("checked",isVisible);if(isVisible){$("#wc-flow-widget").show();}else{$("#wc-flow-widget").hide();if($('#slToggle').prop('checked')){$('#slToggle').prop('checked',false);localStorage.removeItem('wc_flow_toggle');this.setWidgetState('off');}}};function updatePulse(){var $switch=$('#slToggle').closest('.wc-switch');if($('#slToggle').prop('checked')){$switch.addClass('wc-no-pulse');}else{$switch.removeClass('wc-no-pulse');}}
3263$(document).ready(function(){var savedToggle=localStorage.getItem('wc_flow_toggle');if(savedToggle==='true'){$('#slToggle').prop('checked',true);}
3264if(window.editor){if(typeof editor.optionsObject.flowScorePanel==='undefined'){editor.optionsObject.flowScorePanel=true;}
3265editor.flowScorePanel();}
3266updatePulse();$('#slToggle').on('change',function(){var isChecked=$(this).prop('checked');if(isChecked)localStorage.setItem('wc_flow_toggle','true');else localStorage.removeItem('wc_flow_toggle');if(window.editor)editor.calculateFlowScore();updatePulse();});$('#box').on('input keyup paste propertychange scroll',function(e){if($('body').hasClass('wc-highlights-active')){if(e.type==='scroll'){$('#wc-flow-overlay').scrollTop($(this).scrollTop());}else{if(window.editor)window.editor.calculateFlowScore();}}});$(window).on('resize',function(){if($('body').hasClass('wc-highlights-active')&&window.editor){window.editor.syncFlowOverlay();}});$('#box').on('autosize:resized',function(){if($('body').hasClass('wc-highlights-active')&&window.editor){window.editor.syncFlowOverlay();}});if(window.editor&&Editor.prototype.countAll){var originalCountAll=Editor.prototype.countAll;Editor.prototype.countAll=function(text,flag){originalCountAll.apply(this,arguments);if($('#slToggle').prop('checked')){this.calculateFlowScore();}};}
3267var legendItems=document.querySelectorAll('.sl-legend .tooltip-container');legendItems.forEach(function(item){item.addEventListener('click',function(e){for(var i=0;i<legendItems.length;i++){if(legendItems[i]!==item)legendItems[i].classList.remove('active');}
3268e.stopPropagation();this.classList.toggle('active');});});document.addEventListener('click',function(){for(var i=0;i<legendItems.length;i++){legendItems[i].classList.remove('active');}});setTimeout(function(){if(window.editor&&$('#slToggle').prop('checked')){editor.calculateFlowScore();}},1000);});})();;yii.validation=(function($){var pub={isEmpty:function(value){return value===null||value===undefined||($.isArray(value)&&value.length===0)||value==='';},addMessage:function(messages,message,value){messages.push(message.replace(/\{value\}/g,value));},required:function(value,messages,options){var valid=false;if(options.requiredValue===undefined){var isString=typeof value=='string'||value instanceof String;if(options.strict&&value!==undefined||!options.strict&&!pub.isEmpty(isString?trimString(value):value)){valid=true;}}else if(!options.strict&&value==options.requiredValue||options.strict&&value===options.requiredValue){valid=true;}
3269if(!valid){pub.addMessage(messages,options.message,value);}},'boolean':function(value,messages,options){if(options.skipOnEmpty&&pub.isEmpty(value)){return;}
3270var valid=!options.strict&&(value==options.trueValue||value==options.falseValue)||options.strict&&(value===options.trueValue||value===options.falseValue);if(!valid){pub.addMessage(messages,options.message,value);}},string:function(value,messages,options){if(options.skipOnEmpty&&pub.isEmpty(value)){return;}
3271if(typeof value!=='string'){pub.addMessage(messages,options.message,value);return;}
3272if(options.is!==undefined&&value.length!=options.is){pub.addMessage(messages,options.notEqual,value);return;}
3273if(options.min!==undefined&&value.length<options.min){pub.addMessage(messages,options.tooShort,value);}
3274if(options.max!==undefined&&value.length>
3274options.max){pub.addMessage(messages,options.tooLong,value);}},file:function(attribute,messages,options){var files=getUploadedFiles(attribute,messages,options);$.each(files,function(i,file){validateFile(file,messages,options);});},image:function(attribute,messages,options,deferredList){var files=getUploadedFiles(attribute,messages,options);$.each(files,function(i,file){validateFile(file,messages,options);if(typeof FileReader==="undefined"){return;}
3275var deferred=$.Deferred();pub.validateImage(file,messages,options,deferred,new FileReader(),new Image());deferredList.push(deferred);});},validateImage:function(file,messages,options,deferred,fileReader,image){image.onload=function(){validateImageSize(file,image,messages,options);deferred.resolve();};image.onerror=function(){messages.push(options.notImage.replace(/\{file\}/g,file.name));deferred.resolve();};fileReader.onload=function(){image.src=this.result;};fileReader.onerror=function(){deferred.resolve();};fileReader.readAsDataURL(file);},number:function(value,messages,options){if(options.skipOnEmpty&&pub.isEmpty(value)){return;}
3276if(typeof value==='string'&&!options.pattern.test(value)){pub.addMessage(messages,options.message,value);return;}
3277if(options.min!==undefined&&value<options.min){pub.addMessage(messages,options.tooSmall,value);}
3278if(options.max!==undefined&&value>options.max){pub.addMessage(messages,options.tooBig,value);}},range:function(value,messages,options){if(options.skipOnEmpty&&pub.isEmpty(value)){return;}
3279if(!options.allowArray&&$.isArray(value)){pub.addMessage(messages,options.message,value);return;}
3280var inArray=true;$.each($.isArray(value)?value:[value],function(i,v){if($.inArray(v,options.range)==-1){inArray=false;return false;}else{return true;}});if(options.not===undefined){options.not=false;}
3281if(options.not===inArray){pub.addMessage(messages,options.message,value);}},regularExpression:function(value,messages,options){if(options.skipOnEmpty&&pub.isEmpty(value)){return;}
3282if(!options.not&&!options.pattern.test(value)||options.not&&options.pattern.test(value)){pub.addMessage(messages,options.message,value);}},email:function(value,messages,options){if(options.skipOnEmpty&&pub.isEmpty(value)){return;}
3283var valid=true,regexp=/^((?:"?([^"]*)"?\s)?)(?:\s+)?(?:(<?)((.+)@([^>]+))(>?))$/,matches=regexp.exec(value);if(matches===null){valid=false;}else{var localPart=matches[5],domain=matches[6];if(options.enableIDN){localPart=punycode.toASCII(localPart);domain=punycode.toASCII(domain);value=matches[1]+matches[3]+localPart+'@'+domain+matches[7];}
3284if(localPart.length>64){valid=false;}else if((localPart+'@'+domain).length>254){valid=false;}else{valid=options.pattern.test(value)||(options.allowName&&options.fullPattern.test(value));}}
3285if(!valid){pub.addMessage(messages,options.message,value);}},url:function(value,messages,options){if(options.skipOnEmpty&&pub.isEmpty(value)){return;}
3286if(options.defaultScheme&&!/:\/\//.test(value)){value=options.defaultScheme+'://'+value;}
3287var valid=true;if(options.enableIDN){var matches=/^([^:]+):\/\/([^\/]+)(.*)$/.exec(value);if(matches===null){valid=false;}else{value=matches[1]+'://'+punycode.toASCII(matches[2])+matches[3];}}
3288if(!valid||!options.pattern.test(value)){pub.addMessage(messages,options.message,value);}},trim:function($form,attribute,options,value){var $input=$form.find(attribute.input);if($input.is(':checkbox, :radio')){return value;}
3289value=$input.val();if((!options.skipOnEmpty||!pub.isEmpty(value))&&(!options.skipOnArray||!Array.isArray(value))){if(Array.isArray(value)){for(var i=0;i<value.length;i++){value[i]=trimString(value[i],options);}}else{value=trimString(value,options);}
3290$input.val(value);}
3291return value;},captcha:function(value,messages,options){if(options.skipOnEmpty&&pub.isEmpty(value)){return;}
3292var hash=$('body').data(options.hashKey);hash=hash==null?options.hash:hash[options.caseSensitive?0:1];var v=options.caseSensitive?value:value.toLowerCase();for(var i=v.length-1,h=0;i>=0;--i){h+=v.charCodeAt(i)<<i;}
3293if(h!=hash){pub.addMessage(messages,options.message,value);}},compare:function(value,messages,options,$form){if(options.skipOnEmpty&&pub.isEmpty(value)){return;}
3294var compareValue,valid=true;if(options.compareAttribute===undefined){compareValue=options.compareValue;}else{var $target=$('#'+options.compareAttribute);if(!$target.length){$target=$form.find('[name="'+options.compareAttributeName+'"]');}
3295compareValue=$target.val();}
3296if(options.type==='number'){value=value?parseFloat(value):0;compareValue=compareValue?parseFloat(compareValue):0;}
3297switch(options.operator){case'==':valid=value==compareValue;break;case'===':valid=value===compareValue;break;case'!=':valid=value!=compareValue;break;case'!==':valid=value!==compareValue;break;case'>':valid=value>compareValue;break;case'>=':valid=value>=compareValue;break;case'<':valid=value<compareValue;break;case'<=':valid=value<=compareValue;break;default:valid=false;break;}
3298if(!valid){pub.addMessage(messages,options.message,value);}},ip:function(value,messages,options){if(options.skipOnEmpty&&pub.isEmpty(value)){return;}
3299var negation=null,cidr=null,matches=new RegExp(options.ipParsePattern).exec(value);if(matches){negation=matches[1]||null;value=matches[2];cidr=matches[4]||null;}
3300if(options.subnet===true&&cidr===null){pub.addMessage(messages,options.messages.noSub
3300net,value);return;}
3301if(options.subnet===false&&cidr!==null){pub.addMessage(messages,options.messages.hasSubnet,value);return;}
3302if(options.negation===false&&negation!==null){pub.addMessage(messages,options.messages.message,value);return;}
3303var ipVersion=value.indexOf(':')===-1?4:6;if(ipVersion==6){if(!(new RegExp(options.ipv6Pattern)).test(value)){pub.addMessage(messages,options.messages.message,value);}
3304if(!options.ipv6){pub.addMessage(messages,options.messages.ipv6NotAllowed,value);}}else{if(!(new RegExp(options.ipv4Pattern)).test(value)){pub.addMessage(messages,options.messages.message,value);}
3305if(!options.ipv4){pub.addMessage(messages,options.messages.ipv4NotAllowed,value);}}}};function getUploadedFiles(attribute,messages,options)
3306{if(typeof File==="undefined"){return[];}
3307var fileInput=$(attribute.input,attribute.$form).get(0);if(typeof fileInput==="undefined"){return[];}
3308var files=fileInput.files;if(!files){messages.push(options.message);return[];}
3309if(files.length===0){if(!options.skipOnEmpty){messages.push(options.uploadRequired);}
3310return[];}
3311if(options.maxFiles&&options.maxFiles<files.length){messages.push(options.tooMany);return[];}
3312return files;}
3313function validateFile(file,messages,options)
3314{if(options.extensions&&options.extensions.length>0){var found=false;var filename=file.name.toLowerCase();for(var index=0;index<options.extensions.length;index++){var ext=options.extensions[index].toLowerCase();if((ext===''&&filename.indexOf('.')===-1)||(filename.substr(filename.length-options.extensions[index].length-1)===('.'+ext))){foun
3314d=true;break;}}
3315if(!found){messages.push(options.wrongExtension.replace(/\{file\}/g,file.name));}}
3316if(options.mimeTypes&&options.mimeTypes.length>0){if(!validateMimeType(options.mimeTypes,file.type)){messages.push(options.wrongMimeType.replace(/\{file\}/g,file.name));}}
3317if(options.maxSize&&options.maxSize<file.size){messages.push(options.tooBig.replace(/\{file\}/g,file.name));}
3318if(options.minSize&&options.minSize>file.size){messages.push(options.tooSmall.replace(/\{file\}/g,file.name));}}
3319function validateMimeType(mimeTypes,fileType)
3320{for(var i=0,len=mimeTypes.length;i<len;i++){if(new RegExp(mimeTypes[i]).test(fileType)){return true;}}
3321return false;}
3322function validateImageSize(file,image,messages,options)
3323{if(options.minWidth&&image.width<options.minWidth){messages.push(options.underWidth.replace(/\{file\}/g,file.name));}
3324if(options.maxWidth&&image.width>options.maxWidth){messages.push(options.overWidth.replace(/\{file\}/g,file.name));}
3325if(options.minHeight&&image.height<options.minHeight){messages.push(options.underHeight.replace(/\{file\}/g,file.name));}
3326if(options.maxHeight&&image.height>options.maxHeight){messages.push(options.overHeight.replace(/\{file\}/g,file.name));}}
3327function trimString(value,options={skipOnEmpty:true,chars:null})
3328{if(options.skipOnEmpty!==false&&pub.isEmpty(value)){return value;}
3329value=new String(value);if(options.chars||!String.prototype.trim){var chars=!options.chars?' \\s\xA0':options.chars.replace(/([\[\]\(\)\.\?\/\*\{\}\+\$\^\:])/g,'\$1');return value.replace(new RegExp('^['+chars+']+|['+chars+']+$','g'),'');}
3330return value.trim();}
3331return pub;})(jQuery);;(function($){$.fn.yiiActiveForm=function(method){if(methods[method]){return methods[method].apply(this,Array.prototype.slice.call(arguments,1));}else{if(typeof method==='object'||!method){return methods.init.apply(this,arguments);}else{$.error('Method '+method+' does not exist on jQuery.yiiActiveForm');return false;}}};var events={beforeValidate:'beforeValidate',afterValidate:'afterValidate',beforeValidateAttribute:'beforeValidateAttribute',afterValidateAttribute:'afterValidateAttribute',beforeSubmit:'beforeSubmit',ajaxBeforeSend:'ajaxBeforeSend',ajaxComplete:'ajaxComplete',afterInit:'afterInit'};var defaults={encodeErrorSummary:true,errorSummary:'.error-summary',validateOnSubmit:true,errorCssClass:'has-error',successCssClass:'has-success',validatingCssClass:'validating',ajaxParam:'ajax',ajaxDataType:'json',validationUrl:undefined,scrollToError:true,scrollToErrorOffset:0,validationStateOn:'container'};var attributeDefaults={id:undefined,name:undefined,container:undefined,input:undefined,error:'.help-block',encodeError:true,validateOnChange:true,validateOnBlur:true,validateOnType:false,validationDelay:500,enableAjaxValidation:false,validate:undefined,status:0,cancelled:false,value:undefined,updateAriaInvalid:true};var submitDefer;var setSubmitFinalizeDefer=function($form){submitDefer=$.Deferred();$form.data('yiiSubmitFinalizePromise',submitDefer.promise());};var submitFinalize=function($form){if(submitDefer){submitDefer.resolve();submitDefer=undefined;$form.removeData('yiiSubmitFinalizePromise');}};var methods={init:function(attributes,options){return this.each(function(){var $form=$(this);if($form.data('yiiActiveForm')){return;}
3332var settings=$.extend({},defaults,options||{});if(settings.validationUrl===undefined){settings.validationUrl=$form.attr('action');}
3333$.each(attributes,function(i){attributes[i]=$.extend({value:getValue($form,this)},attributeDefaults,this);watchAttribute($form,attributes[i]);});$form.data('yiiActiveForm',{settings:settings,attributes:attributes,submitting:false,validated:false,validate_only:false,options:getFormOptions($form)});$form.on('reset.yiiActiveForm',methods.resetForm);if(settings.validateOnSubmit){$form.on('mouseup.yiiActiveForm keyup.yiiActiveForm',':submit',function(){$form.data('yiiActiveForm').submitObject=$(this);});$form.on('submit.yiiActiveForm',methods.submitForm);}
3334var event=$.Event(events.afterInit);$form.trigger(event);});},add:function(attribute){var $form=$(this);attribute=$.extend({value:getValue($form,attribute)},attributeDefaults,attribute);$form.data('yiiActiveForm').attributes.push(attribute);watchAttribute($form,attribute);},remove:function(id){var $form=$(this),attributes=$form.data('yiiActiveForm').attributes,index=-1,attribute=undefined;$.each(attributes,function(i){if(attributes[i]['id']==id){index=i;attribute=attributes[i];return false;}});if(index>=0){attributes.splice(index,1);unwatchAttribute($form,attribute);}
3335return attribute;},validateAttribute:function(id){var attribute=methods.find.call(this,id);if(attribute!=undefined){validateAttribute($(this),attribute,true);}},find:function(id){var attributes=$(this).data('yiiActiveForm').attributes,result=undefined;$.each(attributes,function(i){if(attributes[i]['id']==id){result=attributes[i];return false;}});return result;},destroy:function(){return this.each(function(){$(this).off('.yiiActiveForm');$(this).removeData('yiiActiveForm');});},data:function(){return this.data('yiiActiveForm');},validate:function(forceValidate){if(forceValidate){$(this).data('yiiActiveForm').submitting=true;}
3336var $form=$(this),data=$form.data('yiiActiveForm'),needAjaxValidation=false,messages={},deferreds=deferredArray(),submitting=data.submitting;if(submitting){var event=$.Event(events.beforeValidate);$form.trigger(event,[messages,deferreds]);if(event.result===false){data.submitting=false;submitFinalize($form);return;}}
3337$.each(data.attributes,function(){this.$form=$form;var $input=findInput($form,this);var disabled=$input.toArray().reduce(function(result,next){return result&&$(next).is(':disabled');},true);if(disabled){return true;}
3338if($input.length&&$input[0].tagName.toLowerCase()==='select'){var opts=$input[0].options,isEmpty=!opts||!opts.length,isRequired=$input.attr('required'),isMultiple=$input.attr('multiple'),size=$input.attr('size')||1;if(isRequired&&!isMultiple&&parseInt(size,10)===1){if(isEmpty){return true;}
3339if(opts[0]&&(opts[0].value!==''&&opts[0].text!=='')){return true;}}}
3340this.cancelled=false;
3340if(data.submitting||this.status===2||this.status===3){var msg=messages[this.id];if(msg===undefined){msg=[];messages[this.id]=msg;}
3341var event=$.Event(events.beforeValidateAttribute);$form.trigger(event,[this,msg,deferreds]);if(event.result!==false){if(this.validate){this.validate(this,getValue($form,this),msg,deferreds,$form);}
3342if(this.enableAjaxValidation){needAjaxValidation=true;}}else{this.cancelled=true;}}});$.when.apply(this,deferreds).always(function(){for(var i in messages){if(0===messages[i].length){delete messages[i];}}
3343if(needAjaxValidation&&($.isEmptyObject(messages)||data.submitting)){var $button=data.submitObject,extData='&'+data.settings.ajaxParam+'='+$form.attr('id');if($button&&$button.length&&$button.attr('name')){extData+='&'+$button.attr('name')+'='+$button.attr('value');}
3344$.ajax({url:data.settings.validationUrl,type:$form.attr('method'),data:$form.serialize()+extData,dataType:data.settings.ajaxDataType,complete:function(jqXHR,textStatus){currentAjaxRequest=null;$form.trigger(events.ajaxComplete,[jqXHR,textStatus]);},beforeSend:function(jqXHR,settings){currentAjaxRequest=jqXHR;$form.trigger(events.ajaxBeforeSend,[jqXHR,settings]);},success:function(msgs){if(msgs!==null&&typeof msgs==='object'){$.each(data.attributes,function(){if(!this.enableAjaxValidation||this.cancelled){delete msgs[this.id];}});updateInputs($form,$.extend(messages,msgs),submitting);}else{updateInputs($form,messages,submitting);}},error:function(){data.submitting=false;submitFinalize($form);}});}else{if(data.submitting){window.setTimeout(function(){updateInputs($form,messages,submitting);},200);}else{updateInputs($form,messages,submitting);}}});},submitForm:function(){var $form=$(this),data=$form.data('yiiActiveForm');if(data.validated){data.submitting=false;var event=$.Event(events.beforeSubmit);$form.trigger(event);if(event.result===false){data.validated=false;submitFinalize($form);return false;}
3345updateHiddenButton($form);return true;}else{setSubmitFinalizeDefer($form);if(data.settings.timer!==undefined){clearTimeout(data.settings.timer);}
3346data.submitting=true;methods.validate.call($form);return false;}},resetForm:function(){var $form=$(this);var data=$form.data('yiiActiveForm');window.setTimeout(function(){$.each(data.attributes,function(){this.value=getValue($form,this);this.status=0;var $container=$form.find(this.container),$input=findInput($form,this),$errorElement=data.settings.validationStateOn==='input'?$input:$container;$errorElement.removeClass(data.settings.validatingCssClass+' '+
3347data.settings.errorCssClass+' '+
3348data.settings.successCssClass);$container.find(this.error).html('');});$form.find(data.settings.errorSummary).hide().find('ul').html('');},1);},updateMessages:function(messages,summary){var $form=$(this);var data=$form.data('yiiActiveForm');$.each(data.attributes,function(){updateInput($form,this,messages);});if(summary){updateSummary($form,messages);}},updateAttribute:function(id,messages){var attribute=methods.find.call(this,id);if(attribute!=undefined){var msg={};msg[id]=messages;updateInput($(this),attribute,msg);}}};var watchAttribute=function($form,attribute){var $input=findInput($form,attribute);if(attribute.validateOnChange){$input.on('change.yiiActiveForm',function(){validateAttribute($form,attribute,false);});}
3349if(attribute.validateOnBlur){$input.on('blur.yiiActiveForm',function(){if(attribute.status==0||attribute.status==1){validateAttribute($form,attribute,true);}});}
3350if(attribute.validateOnType){$input.on('keyup.yiiActiveForm',function(e){if($.inArray(e.which,[16,17,18,37,38,39,40])!==-1){return;}
3351if(attribute.value!==getValue($form,attribute)){validateAttribute($form,attribute,false,attribute.validationDelay);}});}};var unwatchAttribute=function($form,attribute){findInput($form,attribute).off('.yiiActiveForm');};var validateAttribute=function($form,attribute,forceValidate,validationDelay){var data=$form.data('yiiActiveForm');if(forceValidate){attribute.status=2;}
3352$.each(data.attributes,function(){if(!isEqual(this.value,getValue($form,this))){this.status=2;forceValidate=true;}});if(!forceValidate){return;}
3353if(currentAjaxRequest!==null){currentAjaxRequest.abort();}
3354if(data.settings.timer!==undefined){clearTimeout(data.settings.timer);}
3355data.settings.timer=window.setTimeout(function(){if(data.submitting||$form.is(':hidden')){return;}
3356$.each(data.attributes,function(){if(this.status===2){this.status=3;
3356var $container=$form.find(this.container),$input=findInput($form,this);var $errorElement=data.settings.validationStateOn==='input'?$input:$container;$errorElement.addClass(data.settings.validatingCssClass);}});methods.validate.call($form);},validationDelay?validationDelay:200);};var isEqual=function(val1,val2){if(val1 instanceof Object){return isObjectsEqual(val1,val2)}
3357if(Array.isArray(val1)){return isArraysEqual(val1,val2);}
3358return val1===val2;};var isObjectsEqual=function(obj1,obj2){if(!(obj1 instanceof Object)||!(obj2 instanceof Object)){return false;}
3359var keys1=Object.keys(obj1);var keys2=Object.keys(obj2);if(keys1.length!==keys2.length){return false;}
3360for(var i=0;i<keys1.length;i+=1){if(!obj2.hasOwnProperty(keys1[i])){return false;}
3361if(obj1[keys1[i]]!==obj2[keys1[i]]){return false;}}
3362return true;};var isArraysEqual=function(arr1,arr2){if(!Array.isArray(arr1)||!Array.isArray(arr2)){return false;}
3363if(arr1.length!==arr2.length){return false;}
3364for(var i=0;i<arr1.length;i+=1){if(arr1[i]!==arr2[i]){return false;}}
3365return true;};var deferredArray=function(){var array=[];array.add=function(callback){this.push(new $.Deferred(callback));};return array;};var buttonOptions=['action','target','method','enctype'];var getFormOptions=function($form){var attributes={};for(var i=0;i<buttonOptions.length;i++){attributes[buttonOptions[i]]=$form.attr(buttonOptions[i]);}
3366return attributes;};var applyButtonOptions=function($form,$button){for(var i=0;i<buttonOptions.length;i++){var value=$button.attr('form'+buttonOptions[i]);if(value){$form.attr(buttonOptions[i],value);}}};var restoreButtonOptions=function($form){var data=$form.data('yiiActiveForm');for(var i=0;i<buttonOptions.length;i++){$form.attr(buttonOptions[i],data.options[buttonOptions[i]]||null);}};var updateInputs=function($form,messages,submitting){var data=$form.data('yiiActiveForm');if(data===undefined){return false;}
3367var errorAttributes=[],$input;$.each(data.attributes,function(){var hasError=(submitting&&updateInput($form,this,messages))||(!submitting&&attrHasError($form,this,messages));$input=findInput($form,this);if(!$input.is(':disabled')&&!this.cancelled&&hasError){errorAttributes.push(this);}});$form.trigger(events.afterValidate,[messages,errorAttributes]);if(submitting){updateSummary($form,messages);if(errorAttributes.length){if(data.settings.scrollToError){var h=$(document).height(),top=$form.find($.map(errorAttributes,function(attribute){return attribute.input;}).join(',')).first().closest(':visible').offset().top-data.settings.scrollToErrorOffset;top=top<0?0:(top>h?h:top);var wtop=$(window).scrollTop();if(top<wtop||top>wtop+$(window).height()){$(window).scrollTop(top);}}
3368data.submitting=false;}else{data.validated=true;if(!data.validate_only){if(data.submitObject){applyButtonOptions($form,data.submitObject);}
3369$form.submit();if(data.submitObject){restoreButtonOptions($form);}}}}else{$.each(data.attributes,function(){if(!this.cancelled&&(this.status===2||this.status===3)){updateInput($form,this,messages);}});}
3370submitFinalize($form);};var updateHiddenButton=function($form){var data=$form.data('yiiActiveForm');var $button=data.submitObject||$form.find(':submit:first');if($button.length&&$button.attr('type')=='submit'&&$button.attr('name')){var $hiddenButton=$('input[type="hidden"][name="'+$button.attr('name')+'"]',$form);if(!$hiddenButton.length){$('<input>').attr({type:'hidden',name:$button.attr('name'),value:$button.attr('value')}).appendTo($form);}else{$hiddenButton.attr('value',$button.attr('value'));}}};var updateInput=function($form,attribute,messages){var data=$form.data('yiiActiveForm'),$input=findInput($form,attribute),hasError=attrHasError($form,attribute,messages);if(!$.isArray(messages[attribute.id])){messages[attribute.id]=[];}
3371attribute.status=1;if($input.length){var $container=$form.find(attribute.container);var $error=$container.find(attribute.error);updateAriaInvalid($form,attribute,hasError);var $errorElement=data.settings.validationStateOn==='input'?$input:$container;if(hasError){if(attribute.encodeError){$error.text(messages[attribute.id][0]);}else{$error.html(messages[attribute.id][0]);}
3372$errorElement.removeClass(data.settings.validatingCssClass+' '+data.settings.successCssClass).addClass(data.settings.errorCssClass);}else{$error.empty();$errorElement.removeClass(data.settings.validatingCssClass+' '+data.settings.errorCssClass+' ').addClass(data.settings.successCssClass);}
3373attribute.value=getValue($form,attribute);}
3374$form.trigger(events.afterValidateAttribute,[attribute,messages[attribute.id]]);return hasError;};var attrHasError=function($form,attribute,messages){var $input=findInput($form,attribute),hasError=false;if(!$.isArray(messages[attribute.id])){messages[attribute.id]=[];}
3375if($input.length){hasError=messages[attribute.id].length>0;}
3376return hasError;};var updateSummary=function($form,messages){var data=$form.data('yiiActiveForm'),$summary=$form.find(data.settings.errorSummary),$ul=$summary.find('ul').empty();if($summary.length&&messages){$.each(data.attributes,function(){if($.isArray(messages[this.id])&&messages[this.id].length){var error=$('<li/>');if(data.settings.encodeErrorSummary){error.text(messages[this.id][0]);}else{error.html(messages[this.id][0]);}
3377$ul.append(error);}});$summary.toggle($ul.find('li').length>0);}};var getValue=function($form,attribute){var $input=findInput($form,attribute);var type=$input.attr('type');if(type==='checkbox'||type==='radio'){var $realInput=$input.filter(':checked');if($realInput.length>1){var values=[];$realInput.each(function(index){values.push($($realInput.get(index)).val());});return values;}
3378if(!$realInput.length){$realInput=$form.find('input[type=hidden][name="'+$input.attr('name')+'"]');}
3379return $realInput.val();}else{return $input.val();}};var findInput=function($form,attribute){var $input=$form.find(attribute.input);if($input.length&&$input[0].tagName.toLowerCase()==='div'){return $input.find('input');}else{return $input;}};var updateAriaInvalid=function($form,attribute,hasError){if(attribute.updateAriaInvalid){$form.find(attribute.input).attr('aria-invalid',hasError?'true':'false');}}
3380var currentAjaxRequest=null;})(window.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.