merb-ui 0.2.2 → 0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -32,7 +32,7 @@ esc : wq
32
32
  vim config/router.rb
33
33
  a
34
34
 
35
- slice(:merb_ui)
35
+ slice :merb_ui
36
36
 
37
37
  esc : wq
38
38
 
data/Rakefile CHANGED
@@ -3,65 +3,45 @@ require 'rake/gempackagetask'
3
3
  require 'merb-core'
4
4
  require 'merb-core/tasks/merb'
5
5
 
6
- GEM_NAME = 'merb-ui'
7
- AUTHOR = 'uipoet'
8
- EMAIL = 'dont.tase@me.com'
9
- HOMEPAGE = 'http://uipoet.com/projects'
10
- SUMMARY = 'User Interface Components for Merb'
11
- GEM_VERSION = '0.2.2'
12
-
13
6
  spec = Gem::Specification.new do |s|
14
- s.rubyforge_project = AUTHOR
15
- s.name = GEM_NAME
16
- s.version = GEM_VERSION
17
- s.platform = Gem::Platform::RUBY
18
- s.has_rdoc = true
19
- s.extra_rdoc_files = ['README', 'LICENSE']
20
- s.summary = SUMMARY
21
- s.description = s.summary
22
- s.author = AUTHOR
23
- s.email = EMAIL
24
- s.homepage = HOMEPAGE
25
- s.add_dependency('merb-slices', '~> 1.0.0')
26
7
  s.add_dependency('merb-helpers', '~> 1.0.0')
27
- s.require_path = 'lib'
28
- s.files = %w(LICENSE README Rakefile) + Dir.glob("{lib,app,public}/**/*")
8
+ s.add_dependency('merb-slices', '~> 1.0.0')
9
+ s.files = FileList['app/**/*', 'lib/**/*', 'public/**/*', '[A-Z]*'].to_a
10
+ s.name = 'merb-ui'
11
+ s.rubyforge_project = 'uipoet'
12
+ s.summary = 'User Interface Components for Merb'
13
+ s.version = '0.3'
29
14
  end
30
15
 
31
16
  Rake::GemPackageTask.new(spec) do |pkg|
32
17
  pkg.gem_spec = spec
33
18
  end
34
19
 
35
- desc 'Install the gem'
36
- task :install do
37
- Merb::RakeHelper.install(GEM_NAME, :version => GEM_VERSION)
20
+ desc 'Create gemspec'
21
+ task :gemspec do
22
+ File.open("#{spec.name}.gemspec", 'w') do |file|
23
+ file.puts spec.to_ruby
24
+ end
38
25
  end
39
26
 
40
- desc 'Uninstall the gem'
41
- task :uninstall do
42
- Merb::RakeHelper.uninstall(GEM_NAME, :version => GEM_VERSION)
27
+ desc 'Install gem'
28
+ task :install do
29
+ Merb::RakeHelper.install(spec.name, :version => spec.version)
43
30
  end
44
31
 
45
- desc 'Release the gem to rubyforge'
32
+ desc 'Release gem to rubyforge.org'
46
33
  task :release do
47
34
  require 'rubyforge'
48
35
  sh 'sudo rake package'
49
36
  begin
50
37
  sh 'rubyforge login'
51
- sh "rubyforge add_release #{AUTHOR} #{GEM_NAME} #{GEM_VERSION} pkg/#{GEM_NAME}-#{GEM_VERSION}.gem"
38
+ sh "rubyforge add_release #{spec.rubyforge_project} #{spec.name} #{spec.version} pkg/#{spec.name}-#{spec.version}.gem"
52
39
  rescue Exception => e
53
40
  puts "Release failed: #{e.message}"
54
41
  end
55
42
  end
56
43
 
57
- desc 'Create a gemspec file'
58
- task :gemspec do
59
- File.open("#{GEM_NAME}.gemspec", 'w') do |file|
60
- file.puts spec.to_ruby
61
- end
44
+ desc 'Uninstall gem'
45
+ task :uninstall do
46
+ Merb::RakeHelper.uninstall(spec.name, :version => spec.name)
62
47
  end
63
-
64
- require 'spec/rake/spectask'
65
- require 'merb-core/test/tasks/spectasks'
66
- desc 'Default: run spec examples'
67
- task :default => 'spec'
@@ -1,5 +1,5 @@
1
1
  module Merb::GlobalHelpers
2
-
2
+
3
3
  def mui_bar(options = {}, &block)
4
4
  @@mui_bar_tab_width = options[:tab_width] if options[:tab_width]
5
5
  tag(:div, capture(&block), :class => 'mui_bar')
@@ -166,10 +166,11 @@ module Merb::GlobalHelpers
166
166
  end
167
167
 
168
168
  def mui_head
169
- path = '/slices/merb-ui/javascripts/'
169
+ jquery = tag(:script, '', :src => 'http://ajax.googleapis.com/ajax/libs/jquery/1.2/jquery.min.js', :type => 'text/javascript')
170
+ jquery_ui = tag(:script, '', :src => 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.5/jquery-ui.min.js', :type => 'text/javascript')
170
171
  require_css('master', 'mui')
171
- require_js('jquery', "#{path}ui", "#{path}dimensions", "#{path}keybinder", "#{path}desktop")
172
- include_required_css + include_required_js + catch_content(:feeds)
172
+ require_js("#{mui_path :javascript}/dimensions", "#{mui_path :javascript}/keybinder", "#{mui_path :javascript}/main")
173
+ jquery + jquery_ui + include_required_js + include_required_css + catch_content(:feeds)
173
174
  end
174
175
 
175
176
  def mui_hyper_text(name, options = {})
@@ -187,7 +188,7 @@ module Merb::GlobalHelpers
187
188
  attributes[:class] << ' mui_image_border' if options[:border] == true
188
189
  if options[:height] && options[:width]
189
190
  attributes[:class] << ' mui_image_rounded' if options[:rounded] == true
190
- attributes[:src] = '/slices/merb-ui/images/nil.png'
191
+ attributes[:src] = "#{mui_path :image}/nil.png"
191
192
  attributes[:style] = %{background-image: url('#{options[:url]}');}
192
193
  attributes[:style] << %{height: #{options[:height]}px;}
193
194
  attributes[:style] << %{width: #{options[:width]}px;}
@@ -235,6 +236,10 @@ module Merb::GlobalHelpers
235
236
  password_field(name, attributes)
236
237
  end
237
238
 
239
+ def mui_path(type)
240
+ ::MerbUi.public_path_for type
241
+ end
242
+
238
243
  def mui_search(options = {})
239
244
  attributes = {}
240
245
  attributes[:class] = 'mui_search'
@@ -295,7 +300,7 @@ module Merb::GlobalHelpers
295
300
  end
296
301
 
297
302
  def mui_window(options = {}, &block)
298
- script = js_include_tag '/slices/merb-ui/javascripts/window'
303
+ script = js_include_tag("#{mui_path :javascript}/window")
299
304
  bar_content = ''
300
305
  bar_content << tag(:td, options[:buttons], :class => 'mui_bar_buttons') if options[:buttons]
301
306
  bar_content << tag(:td, options[:title], :class => 'mui_window_title') if options[:title]
@@ -47,7 +47,7 @@ kbd {
47
47
 
48
48
  div.mui_bar {
49
49
  background-color: <%= color(0.1, 0.1, 0.1) %>;
50
- background-image: url('<%= image_path('reflection.png') %>');
50
+ background-image: url('<%= mui_path :image %>/reflection.png');
51
51
  background-position: center center;
52
52
  background-repeat: repeat-x;
53
53
  border-collapse: collapse;
@@ -65,7 +65,7 @@ span.mui_block {
65
65
  vertical-align: top;
66
66
  }
67
67
  div.mui_block_status {
68
- background-image: url('<%= image_path('transparency.png') %>');
68
+ background-image: url('<%= mui_path :image %>/transparency.png');
69
69
  border-color: <%= color(0, 0, 0) %>;
70
70
  border-style: solid;
71
71
  border-width: 1px;
@@ -98,7 +98,7 @@ div.mui_block_tray *.mui_block {
98
98
  /* button */
99
99
 
100
100
  *.mui_button {
101
- background-image: url('<%= image_path('reflection.png') %>');
101
+ background-image: url('<%= mui_path :image %>/reflection.png');
102
102
  background-position: center center;
103
103
  background-repeat: repeat-x;
104
104
  border-style: solid;
@@ -360,7 +360,7 @@ select.mui_menu {
360
360
  /* message */
361
361
 
362
362
  div.mui_message {
363
- background-image: url('<%= image_path('transparency.png') %>');
363
+ background-image: url('<%= mui_path :image %>/transparency.png');
364
364
  border-style: solid;
365
365
  border-bottom-width: 1px;
366
366
  border-left-width: 1px;
@@ -411,7 +411,7 @@ blockquote.mui_quote {
411
411
 
412
412
  a.mui_tab {
413
413
  background-color: <%= color(0.1, 0.1, 0.1) %>;
414
- background-image: url('<%= image_path('reflection.png') %>');
414
+ background-image: url('<%= mui_path :image %>/reflection.png');
415
415
  background-position: center center;
416
416
  background-repeat: repeat-x;
417
417
  border-bottom: none;
@@ -460,7 +460,7 @@ table.mui_window {
460
460
  }
461
461
  table.mui_window_bar {
462
462
  background-color: <%= color(0.1, 0.1, 0.1) %>;
463
- background-image: url('<%= image_path('reflection.png') %>');
463
+ background-image: url('<%= mui_path :image %>/reflection.png');
464
464
  background-position: center center;
465
465
  background-repeat: repeat-x;
466
466
  color: <%= color(1, 1, 1) %>;
@@ -474,7 +474,7 @@ td.mui_window_bar_end {
474
474
  text-align: right;
475
475
  }
476
476
  td.mui_window_content {
477
- background-image: url('<%= image_path('transparency.png') %>');
477
+ background-image: url('<%= mui_path :image %>/transparency.png');
478
478
  color: <%= color(1, 1, 1) %>;
479
479
  padding: 0.5em;
480
480
  <%= border_radius(:edge => 'bottom') %>
File without changes
metadata CHANGED
@@ -1,19 +1,19 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: merb-ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: "0.3"
5
5
  platform: ruby
6
- authors:
7
- - uipoet
6
+ authors: []
7
+
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-11-29 00:00:00 -08:00
12
+ date: 2008-12-07 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: merb-slices
16
+ name: merb-helpers
17
17
  type: :runtime
18
18
  version_requirement:
19
19
  version_requirements: !ruby/object:Gem::Requirement
@@ -23,7 +23,7 @@ dependencies:
23
23
  version: 1.0.0
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
- name: merb-helpers
26
+ name: merb-slices
27
27
  type: :runtime
28
28
  version_requirement:
29
29
  version_requirements: !ruby/object:Gem::Requirement
@@ -32,48 +32,45 @@ dependencies:
32
32
  - !ruby/object:Gem::Version
33
33
  version: 1.0.0
34
34
  version:
35
- description: User Interface Components for Merb
36
- email: dont.tase@me.com
35
+ description:
36
+ email:
37
37
  executables: []
38
38
 
39
39
  extensions: []
40
40
 
41
- extra_rdoc_files:
42
- - README
43
- - LICENSE
41
+ extra_rdoc_files: []
42
+
44
43
  files:
45
- - LICENSE
46
- - README
47
- - Rakefile
48
- - lib/merb-ui
49
- - lib/merb-ui/merbtasks.rb
50
- - lib/merb-ui/slicetasks.rb
51
- - lib/merb-ui/spectasks.rb
52
- - lib/merb-ui.rb
53
44
  - app/controllers
54
45
  - app/controllers/application.rb
55
46
  - app/controllers/styles.rb
56
47
  - app/helpers
57
- - app/helpers/application_helper.rb
58
48
  - app/helpers/global_helpers.rb
59
49
  - app/helpers/merb_helpers.rb
60
50
  - app/helpers/styles_helper.rb
61
51
  - app/views
62
52
  - app/views/styles
63
53
  - app/views/styles/index.css.erb
54
+ - lib/merb-ui
55
+ - lib/merb-ui/merbtasks.rb
56
+ - lib/merb-ui/slicetasks.rb
57
+ - lib/merb-ui/spectasks.rb
58
+ - lib/merb-ui.rb
64
59
  - public/images
65
60
  - public/images/nil.png
66
61
  - public/images/reflection.png
67
62
  - public/images/transparency.png
68
63
  - public/javascripts
69
- - public/javascripts/desktop.js
70
64
  - public/javascripts/dimensions.js
71
65
  - public/javascripts/keybinder.js
66
+ - public/javascripts/main.js
72
67
  - public/javascripts/message.js
73
- - public/javascripts/ui.js
74
68
  - public/javascripts/window.js
75
- has_rdoc: true
76
- homepage: http://uipoet.com/projects
69
+ - LICENSE
70
+ - Rakefile
71
+ - README
72
+ has_rdoc: false
73
+ homepage:
77
74
  post_install_message:
78
75
  rdoc_options: []
79
76
 
@@ -1,60 +0,0 @@
1
- module Merb::MerbUi::ApplicationHelper
2
-
3
- # @param *segments<Array[#to_s]> Path segments to append.
4
- #
5
- # @return <String>
6
- # A path relative to the public directory, with added segments.
7
- def image_path(*segments)
8
- public_path_for(:image, *segments)
9
- end
10
-
11
- # @param *segments<Array[#to_s]> Path segments to append.
12
- #
13
- # @return <String>
14
- # A path relative to the public directory, with added segments.
15
- def javascript_path(*segments)
16
- public_path_for(:javascript, *segments)
17
- end
18
-
19
- # @param *segments<Array[#to_s]> Path segments to append.
20
- #
21
- # @return <String>
22
- # A path relative to the public directory, with added segments.
23
- def stylesheet_path(*segments)
24
- public_path_for(:stylesheet, *segments)
25
- end
26
-
27
- # Construct a path relative to the public directory
28
- #
29
- # @param <Symbol> The type of component.
30
- # @param *segments<Array[#to_s]> Path segments to append.
31
- #
32
- # @return <String>
33
- # A path relative to the public directory, with added segments.
34
- def public_path_for(type, *segments)
35
- ::MerbUi.public_path_for(type, *segments)
36
- end
37
-
38
- # Construct an app-level path.
39
- #
40
- # @param <Symbol> The type of component.
41
- # @param *segments<Array[#to_s]> Path segments to append.
42
- #
43
- # @return <String>
44
- # A path within the host application, with added segments.
45
- def app_path_for(type, *segments)
46
- ::MerbUi.app_path_for(type, *segments)
47
- end
48
-
49
- # Construct a slice-level path.
50
- #
51
- # @param <Symbol> The type of component.
52
- # @param *segments<Array[#to_s]> Path segments to append.
53
- #
54
- # @return <String>
55
- # A path within the slice source (Gem), with added segments.
56
- def slice_path_for(type, *segments)
57
- ::MerbUi.slice_path_for(type, *segments)
58
- end
59
-
60
- end
@@ -1 +0,0 @@
1
- eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(6(D){d A=D.2S.1I;D.2S.1I=6(){D("*",4).1d(4).2y("1I");g A.2e(4,4i)};6 C(E){6 G(H){d I=H.1N;g(I.47!="31"&&I.5j!="2u")}d F=G(E);(F&&D.1e(D.5q(E,"1w"),6(){g(F=G(4))}));g F}D.1t(D.5c[":"],{V:6(F,G,E){g D.V(F,E[3])},5v:6(F,G,E){d H=F.4N.4Q();g(F.5X>=0&&(("a"==H&&F.5S)||(/4h|5h|5Q|3P/.z(H)&&"2u"!=F.3Y&&!F.1o))&&C(F))}});D.5T={5U:8,6c:20,5s:5m,5I:17,5H:46,5B:40,5G:35,5l:13,5O:27,6e:36,6h:45,4R:37,5f:59,55:4t,4y:5p,4v:4B,4G:4D,4A:4I,4H:34,4p:33,4u:56,4L:39,52:16,5e:32,51:9,50:38};6 B(I,E,J,H){6 G(L){d K=D[I][E][L]||[];g(2f K=="2i"?K.2L(/,?\\s+/):K)}d F=G("4P");5(H.1K==1&&2f H[0]=="2i"){F=F.4O(G("3B"))}g(D.4M(J,F)!=-1)}D.1T=6(E,F){d G=E.2L(".")[0];E=E.2L(".")[1];D.2S[E]=6(K){d I=(2f K=="2i"),J=4T.23.4Z.1M(4i,1);5(I&&K.4W(0,1)=="4U"){g 4}5(I&&B(G,E,K,J)){d H=D.V(4[0],E);g(H?H[K].2e(H,J):1Z)}g 4.1e(6(){d L=D.V(4,E);(!L&&!I&&D.V(4,E,4V D[G][E](4,K)));(L&&I&&D.3m(L[K])&&L[K].2e(L,J))})};D[G][E]=6(I,J){d H=4;4.1E=E;4.3i=D[G][E].4X||E;4.3I=G+"-"+E;4.c=D.1t({},D.1T.2b,D[G][E].2b,D.3H&&D.3H.2V(I)[E],J);4.m=D(I).1L("4Y."+E,6(M,K,L){g H.24(K,L)}).1L("4S."+E,6(L,K){g H.2Q(K)}).1L("1I",6(){g H.2O()});4.3c()};D[G][E].23=D.1t({},D.1T.23,F);D[G][E].3B="3y"};D.1T.23={3c:6(){},2O:6(){4.m.4c(4.1E)},3y:6(G,H){d F=G,E=4;5(2f G=="2i"){5(H===1Z){g 4.2Q(G)}F={};F[G]=H}D.1e(F,6(I,J){E.24(I,J)})},2Q:6(E){g 4.c[E]},24:6(E,F){4.c[E]=F;5(E=="1o"){4.m[F?"2a":"2T"](4.3I+"-1o")}},5b:6(){4.24("1o",u)},5a:6(){4.24("1o",T)},5d:6(F,H,G){d E=(F==4.3i?F:4.3i+F);H=H||D.53.54({3Y:E,1Y:4.m[0]});g 4.m.2y(E,[H,G],4.c[F])}};D.1T.2b={1o:u};D.k={1n:{1d:6(F,E,I){d H=D.k[F].23;3o(d G 5g I){H.26[G]=H.26[G]||[];H.26[G].3r([E,I[G]])}},1M:6(E,G,F){d I=E.26[G];5(!I){g}3o(d H=0;H<I.1K;H++){5(E.c[I[H][0]]){I[H][1].2e(E.m,F)}}}},2l:{},j:6(E){5(D.k.2l[E]){g D.k.2l[E]}d F=D(\'<2I 4k="k-4q">\').2a(E).j({v:"1s",b:"-42",7:"-42",47:"4s"}).1S("1a");D.k.2l[E]=!!((!(/1q|4j/).z(F.j("1O"))||(/^[1-9]/).z(F.j("12"))||(/^[1-9]/).z(F.j("11"))||!(/31/).z(F.j("4r"))||!(/4m|4l\\(0, 0, 0, 0\\)/).z(F.j("4n"))));4o{D("1a").2V(0).4f(F.2V(0))}4J(G){}g D.k.2l[E]},4E:6(E){g D(E).2m("2k","3C").j("3R","31").1L("3S.k",6(){g u})},4z:6(E){g D(E).2m("2k","4C").j("3R","").28("3S.k")},4w:6(H,E){5(D(H).j("1m")=="2u"){g u}d G=(E&&E=="7")?"X":"W",F=u;5(H[G]>0){g T}H[G]=1;F=(H[G]>0);H[G]=0;g F}};D.k.2Y={3M:6(){d E=4;4.m.1L("4x."+4.1E,6(F){g E.3U(F)});5(D.2E.3a){4.3T=4.m.2m("2k");4.m.2m("2k","3C")}4.5r=u},4d:6(){4.m.28("."+4.1E);(D.2E.3a&&4.m.2m("2k",4.3T))},3U:6(G){(4.1x&&4.2h(G));4.2B=G;d E=4,H=(G.61==1),F=(2f 4.c.2F=="2i"?D(G.1Y).3X().1d(G.1Y).62(4.c.2F).1K:u);5(!H||F||!4.2H(G)){g T}4.2z=!4.c.2C;5(!4.2z){4.64=63(6(){E.2z=T},4.c.2C)}5(4.2W(G)&&4.2X(G)){4.1x=(4.2j(G)!==u);5(!4.1x){G.5Y();g T}}4.3b=6(I){g E.3O(I)};4.2Z=6(I){g E.2h(I)};D(n).1L("3W."+4.1E,4.3b).1L("43."+4.1E,4.2Z);g u},3O:6(E){5(D.2E.3a&&!E.3P){g 4.2h(E)}5(4.1x){4.1V(E);g u}5(4.2W(E)&&4.2X(E)){4.1x=(4.2j(4.2B,E)!==u);(4.1x?4.1V(E):4.2h(E))}g!4.1x},2h:6(E){D(n).28("3W."+4.1E,4.3b).28("43."+4.1E,4.2Z);5(4.1x){4.1x=u;4.2c(E)}g u},2W:6(E){g(Z.3k(Z.1p(4.2B.1C-E.1C),Z.1p(4.2B.1D-E.1D))>=4.c.2R)},2X:6(E){g 4.2z},2j:6(E){},1V:6(E){},2c:6(E){},2H:6(E){g T}};D.k.2Y.2b={2F:2A,2R:1,2C:0}})(4b);(6(A){A.1T("k.p",A.1t({},A.k.2Y,{3Z:6(C){d B=!4.c.1U||!A(4.c.1U,4.m).1K?T:u;A(4.c.1U,4.m).6f("*").6g().1e(6(){5(4==C.1Y){B=T}});g B},48:6(){d C=4.c;d B=A.3m(C.o)?A(C.o.2e(4.m[0],[e])):(C.o=="30"?4.m.30():4.m);5(!B.3X("1a").1K){B.1S((C.1S=="t"?4.m[0].1w:C.1S))}5(B[0]!=4.m[0]&&!(/(1r|1s)/).z(B.j("v"))){B.j("v","1s")}g B},3c:6(){5(4.c.o=="2J"&&!(/^(?:r|a|f)/).z(4.m.j("v"))){4.m[0].1N.v="w"}(4.c.2N&&4.m.2a(4.c.2N+"-p"));(4.c.1o&&4.m.2a("k-p-1o"));4.3M()},2H:6(B){d C=4.c;5(4.o||C.1o||A(B.1Y).6d(".k-68-1U")){g u}4.1U=4.3Z(B);5(!4.1U){g u}g T},2j:6(D){d E=4.c;4.o=4.48();5(A.k.1v){A.k.1v.67=4}4.14={7:(U(4.m.j("69"),10)||0),b:(U(4.m.j("6a"),10)||0)};4.19=4.o.j("v");4.h=4.m.h();4.h={b:4.h.b-4.14.b,7:4.h.7-4.14.7};4.h.Y={7:D.1C-4.h.7,b:D.1D-4.h.b};4.3w();4.1h=4.o.1h();d B=4.1h.h();5(4.1h[0]==n.1a&&A.2E.6b){B={b:0,7:0}}4.h.t={b:B.b+(U(4.1h.j("3n"),10)||0),7:B.7+(U(4.1h.j("2U"),10)||0)};5(4.19=="w"){d C=4.m.v();4.h.w={b:C.b-(U(4.o.j("b"),10)||0)+4.1H.W(),7:C.7-(U(4.o.j("7"),10)||0)+4.1F.X()}}1W{4.h.w={b:0,7:0}}4.1Q=4.3g(D);4.3j();5(E.3z){4.3A(E.3z)}A.1t(4,{3l:(4.19=="1s"&&(!4.1H[0].1l||(/(2G|1a)/i).z(4.1H[0].1l))),3e:(4.19=="1s"&&(!4.1F[0].1l||(/(2G|1a)/i).z(4.1F[0].1l))),3h:4.1H[0]!=4.1h[0]&&!(4.1H[0]==n&&(/(1a|2G)/i).z(4.1h[0].1l)),3f:4.1F[0]!=4.1h[0]&&!(4.1F[0]==n&&(/(1a|2G)/i).z(4.1h[0].1l))});5(E.q){4.3K()}4.1A("1z",D);4.3j();5(A.k.1v&&!E.4a){A.k.1v.3D(4,D)}4.o.2a("k-p-2P");4.1V(D);g T},3w:6(){4.1H=6(B){2v{5(/1q|1u/.z(B.j("1m"))||(/1q|1u/).z(B.j("1m-y"))){g B}B=B.t()}2p(B[0].1w);g A(n)}(4.o);4.1F=6(B){2v{5(/1q|1u/.z(B.j("1m"))||(/1q|1u/).z(B.j("1m-x"))){g B}B=B.t()}2p(B[0].1w);g A(n)}(4.o)},3A:6(B){5(B.7!=1Z){4.h.Y.7=B.7+4.14.7}5(B.3L!=1Z){4.h.Y.7=4.18.11-B.3L+4.14.7}5(B.b!=1Z){4.h.Y.b=B.b+4.14.b}5(B.3J!=1Z){4.h.Y.b=4.18.12-B.3J+4.14.b}},3j:6(){4.18={11:4.o.49(),12:4.o.3x()}},3K:6(){d E=4.c;5(E.q=="t"){E.q=4.o[0].1w}5(E.q=="n"||E.q=="22"){4.q=[0-4.h.w.7-4.h.t.7,0-4.h.w.b-4.h.t.b,A(E.q=="n"?n:22).11()-4.h.w.7-4.h.t.7-4.18.11-4.14.7-(U(4.m.j("3G"),10)||0),(A(E.q=="n"?n:22).12()||n.1a.1w.3E)-4.h.w.b-4.h.t.b-4.18.12-4.14.b-(U(4.m.j("3F"),10)||0)]}5(!(/^(n|22|t)$/).z(E.q)){d C=A(E.q)[0];d D=A(E.q).h();d B=(A(C).j("1m")!="2u");4.q=[D.7+(U(A(C).j("2U"),10)||0)-4.h.w.7-4.h.t.7,D.b+(U(A(C).j("3n"),10)||0)-4.h.w.b-4.h.t.b,D.7+(B?Z.3k(C.5u,C.2t):C.2t)-(U(A(C).j("2U"),10)||0)-4.h.w.7-4.h.t.7-4.18.11-4.14.7-(U(4.m.j("3G"),10)||0),D.b+(B?Z.3k(C.3E,C.2n):C.2n)-(U(A(C).j("3n"),10)||0)-4.h.w.b-4.h.t.b-4.18.12-4.14.b-(U(4.m.j("3F"),10)||0)]}},1b:6(C,D){5(!D){D=4.v}d B=C=="1s"?1:-1;g{b:(D.b+4.h.w.b*B+4.h.t.b*B-(4.19=="1r"||4.3l||4.3h?0:4.1H.W())*B+(4.19=="1r"?A(n).W():0)*B+4.14.b*B),7:(D.7+4.h.w.7*B+4.h.t.7*B-(4.19=="1r"||4.3e||4.3f?0:4.1F.X())*B+(4.19=="1r"?A(n).X():0)*B+4.14.7*B)}},3g:6(E){d F=4.c;d B={b:(E.1D-4.h.Y.b-4.h.w.b-4.h.t.b+(4.19=="1r"||4.3l||4.3h?0:4.1H.W())-(4.19=="1r"?A(n).W():0)),7:(E.1C-4.h.Y.7-4.h.w.7-4.h.t.7+(4.19=="1r"||4.3e||4.3f?0:4.1F.X())-(4.19=="1r"?A(n).X():0))};5(!4.1Q){g B}5(4.q){5(B.7<4.q[0]){B.7=4.q[0]}5(B.b<4.q[1]){B.b=4.q[1]}5(B.7>4.q[2]){B.7=4.q[2]}5(B.b>4.q[3]){B.b=4.q[3]}}5(F.1y){d D=4.1Q.b+Z.4g((B.b-4.1Q.b)/F.1y[1])*F.1y[1];B.b=4.q?(!(D<4.q[1]||D>4.q[3])?D:(!(D<4.q[1])?D-F.1y[1]:D+F.1y[1])):D;d C=4.1Q.7+Z.4g((B.7-4.1Q.7)/F.1y[0])*F.1y[0];B.7=4.q?(!(C<4.q[0]||C>4.q[2])?C:(!(C<4.q[0])?C-F.1y[0]:C+F.1y[0])):C}g B},1V:6(B){4.v=4.3g(B);4.1J=4.1b("1s");4.v=4.1A("1G",B)||4.v;5(!4.c.29||4.c.29!="y"){4.o[0].1N.7=4.v.7+"2D"}5(!4.c.29||4.c.29!="x"){4.o[0].1N.b=4.v.b+"2D"}5(A.k.1v){A.k.1v.1G(4,B)}g u},2c:6(C){d D=u;5(A.k.1v&&!4.c.4a){d D=A.k.1v.5o(4,C)}5((4.c.1B=="5n"&&!D)||(4.c.1B=="5x"&&D)||4.c.1B===T||(A.3m(4.c.1B)&&4.c.1B.1M(4.m,D))){d B=4;A(4.o).5J(4.1Q,U(4.c.5K,10)||5L,6(){B.1A("1R",C);B.2M()})}1W{4.1A("1R",C);4.2M()}g u},2M:6(){4.o.2T("k-p-2P");5(4.c.o!="2J"&&!4.2d){4.o.1I()}4.o=2A;4.2d=u},26:{},2g:6(B){g{o:4.o,v:4.v,3t:4.1J,c:4.c}},1A:6(C,B){A.k.1n.1M(4,C,[B,4.2g()]);5(C=="1G"){4.1J=4.1b("1s")}g 4.m.2y(C=="1G"?C:"1G"+C,[B,4.2g()],4.c[C])},2O:6(){5(!4.m.V("p")){g}4.m.4c("p").28(".p").2T("k-p k-p-2P k-p-1o");4.4d()}}));A.1t(A.k.p,{2b:{1S:"t",29:u,2F:":4h",2C:0,2R:1,o:"2J",5F:"4j",2N:"k"}});A.k.1n.1d("p","1O",{1z:6(D,C){d B=A("1a");5(B.j("1O")){C.c.2K=B.j("1O")}B.j("1O",C.c.1O)},1R:6(C,B){5(B.c.2K){A("1a").j("1O",B.c.2K)}}});A.k.1n.1d("p","1c",{1z:6(D,C){d B=A(C.o);5(B.j("1c")){C.c.3d=B.j("1c")}B.j("1c",C.c.1c)},1R:6(C,B){5(B.c.3d){A(B.o).j("1c",B.c.3d)}}});A.k.1n.1d("p","1P",{1z:6(D,C){d B=A(C.o);5(B.j("1P")){C.c.3u=B.j("1P")}B.j("1P",C.c.1P)},1R:6(C,B){5(B.c.3u){A(B.o).j("1P",B.c.3u)}}});A.k.1n.1d("p","25",{1z:6(C,B){A(B.c.25===T?"5E":B.c.25).1e(6(){A(\'<2I 4k="k-p-25" 1N="5D: #5C;"></2I>\').j({11:4.2t+"2D",12:4.2n+"2D",v:"1s",1P:"0.5z",1c:5A}).j(A(4).h()).1S("1a")})},1R:6(C,B){A("2I.k-p-25").1e(6(){4.1w.4f(4)})}});A.k.1n.1d("p","1u",{1z:6(D,C){d E=C.c;d B=A(4).V("p");E.1i=E.1i||20;E.1k=E.1k||20;B.1f=6(F){2v{5(/1q|1u/.z(F.j("1m"))||(/1q|1u/).z(F.j("1m-y"))){g F}F=F.t()}2p(F[0].1w);g A(n)}(4);B.1g=6(F){2v{5(/1q|1u/.z(F.j("1m"))||(/1q|1u/).z(F.j("1m-x"))){g F}F=F.t()}2p(F[0].1w);g A(n)}(4);5(B.1f[0]!=n&&B.1f[0].1l!="2w"){B.3p=B.1f.h()}5(B.1g[0]!=n&&B.1g[0].1l!="2w"){B.3s=B.1g.h()}},1G:6(E,D){d F=D.c,C=u;d B=A(4).V("p");5(B.1f[0]!=n&&B.1f[0].1l!="2w"){5((B.3p.b+B.1f[0].2n)-E.1D<F.1i){B.1f[0].W=C=B.1f[0].W+F.1k}5(E.1D-B.3p.b<F.1i){B.1f[0].W=C=B.1f[0].W-F.1k}}1W{5(E.1D-A(n).W()<F.1i){C=A(n).W(A(n).W()-F.1k)}5(A(22).12()-(E.1D-A(n).W())<F.1i){C=A(n).W(A(n).W()+F.1k)}}5(B.1g[0]!=n&&B.1g[0].1l!="2w"){5((B.3s.7+B.1g[0].2t)-E.1C<F.1i){B.1g[0].X=C=B.1g[0].X+F.1k}5(E.1C-B.3s.7<F.1i){B.1g[0].X=C=B.1g[0].X-F.1k}}1W{5(E.1C-A(n).X()<F.1i){C=A(n).X(A(n).X()-F.1k)}5(A(22).11()-(E.1C-A(n).X())<F.1i){C=A(n).X(A(n).X()+F.1k)}}5(C!==u){A.k.1v.3D(B,E)}}});A.k.1n.1d("p","1j",{1z:6(D,C){d B=A(4).V("p");B.15=[];A(C.c.1j.5w!=5t?(C.c.1j.5P||":V(p)"):C.c.1j).1e(6(){d F=A(4);d E=F.h();5(4!=B.m[0]){B.15.3r({2s:4,11:F.49(),12:F.3x(),b:E.b,7:E.7})}})},1G:6(P,K){d E=A(4).V("p");d Q=K.c.5V||20;d O=K.3t.7,N=O+E.18.11,D=K.3t.b,C=D+E.18.12;3o(d M=E.15.1K-1;M>=0;M--){d L=E.15[M].7,J=L+E.15[M].11,I=E.15[M].b,R=I+E.15[M].12;5(!((L-Q<O&&O<J+Q&&I-Q<D&&D<R+Q)||(L-Q<O&&O<J+Q&&I-Q<C&&C<R+Q)||(L-Q<N&&N<J+Q&&I-Q<D&&D<R+Q)||(L-Q<N&&N<J+Q&&I-Q<C&&C<R+Q))){5(E.15[M].2q){(E.c.1j.41&&E.c.1j.41.1M(E.m,2A,A.1t(E.2g(),{3V:E.15[M].2s})))}E.15[M].2q=u;65}5(K.c.44!="66"){d B=Z.1p(I-C)<=Q;d S=Z.1p(R-D)<=Q;d G=Z.1p(L-N)<=Q;d H=Z.1p(J-O)<=Q;5(B){K.v.b=E.1b("w",{b:I-E.18.12,7:0}).b}5(S){K.v.b=E.1b("w",{b:R,7:0}).b}5(G){K.v.7=E.1b("w",{b:0,7:L-E.18.11}).7}5(H){K.v.7=E.1b("w",{b:0,7:J}).7}}d F=(B||S||G||H);5(K.c.44!="5W"){d B=Z.1p(I-D)<=Q;d S=Z.1p(R-C)<=Q;d G=Z.1p(L-O)<=Q;d H=Z.1p(J-N)<=Q;5(B){K.v.b=E.1b("w",{b:I,7:0}).b}5(S){K.v.b=E.1b("w",{b:R-E.18.12,7:0}).b}5(G){K.v.7=E.1b("w",{b:0,7:L}).7}5(H){K.v.7=E.1b("w",{b:0,7:J-E.18.11}).7}}5(!E.15[M].2q&&(B||S||G||H||F)){(E.c.1j.1j&&E.c.1j.1j.1M(E.m,2A,A.1t(E.2g(),{3V:E.15[M].2s})))}E.15[M].2q=(B||S||G||H||F)}}});A.k.1n.1d("p","3Q",{1z:6(D,C){d B=A(4).V("p");B.2x=[];A(C.c.3Q).1e(6(){5(A.V(4,"3q")){d E=A.V(4,"3q");B.2x.3r({l:E,3N:E.c.1B});E.5Z();E.1A("60",D,B)}})},1R:6(D,C){d B=A(4).V("p");A.1e(B.2x,6(){5(4.l.1X){4.l.1X=0;B.2d=T;4.l.2d=u;5(4.3N){4.l.c.1B=T}4.l.2c(D);4.l.m.2y("4F",[D,A.1t(4.l.k(),{4K:B.m})],4.l.c.57);4.l.c.o=4.l.c.3v}1W{4.l.1A("58",D,B)}})},1G:6(F,E){d D=A(4).V("p"),B=4;d C=6(K){d H=K.7,J=H+K.11,I=K.b,G=I+K.12;g(H<(4.1J.7+4.h.Y.7)&&(4.1J.7+4.h.Y.7)<J&&I<(4.1J.b+4.h.Y.b)&&(4.1J.b+4.h.Y.b)<G)};A.1e(D.2x,6(G){5(C.1M(D,4.l.5i)){5(!4.l.1X){4.l.1X=1;4.l.2r=A(B).30().1S(4.l.m).V("3q-2s",T);4.l.c.3v=4.l.c.o;4.l.c.o=6(){g E.o[0]};F.1Y=4.l.2r[0];4.l.2H(F,T);4.l.2j(F,T,T);4.l.h.Y.b=D.h.Y.b;4.l.h.Y.7=D.h.Y.7;4.l.h.t.7-=D.h.t.7-4.l.h.t.7;4.l.h.t.b-=D.h.t.b-4.l.h.t.b;D.1A("5R",F)}5(4.l.2r){4.l.1V(F)}}1W{5(4.l.1X){4.l.1X=0;4.l.2d=T;4.l.c.1B=u;4.l.2c(F,T);4.l.c.o=4.l.c.3v;4.l.2r.1I();5(4.l.4e){4.l.4e.1I()}D.1A("5k",F)}}})}});A.k.1n.1d("p","21",{1z:6(D,B){d C=A.5y(A(B.c.21.5N)).5M(6(F,E){g(U(A(F).j("1c"),10)||B.c.21.2o)-(U(A(E).j("1c"),10)||B.c.21.2o)});A(C).1e(6(E){4.1N.1c=B.c.21.2o+E});4[0].1N.1c=B.c.21.2o+C.1K}})})(4b);',62,390,'||||this|if|function|left||||top|options|var|||return|offset||css|ui|instance|element|document|helper|draggable|containment|||parent|false|position|relative|||test||||||||||||||||||||true|parseInt|data|scrollTop|scrollLeft|click|Math||width|height||margins|snapElements|||helperProportions|cssPosition|body|_convertPositionTo|zIndex|add|each|overflowY|overflowX|offsetParent|scrollSensitivity|snap|scrollSpeed|tagName|overflow|plugin|disabled|abs|auto|fixed|absolute|extend|scroll|ddmanager|parentNode|_mouseStarted|grid|start|_propagate|revert|pageX|pageY|widgetName|scrollLeftParent|drag|scrollTopParent|remove|positionAbs|length|bind|call|style|cursor|opacity|originalPosition|stop|appendTo|widget|handle|_mouseDrag|else|isOver|target|undefined||stack|window|prototype|_setData|iframeFix|plugins||unbind|axis|addClass|defaults|_mouseStop|cancelHelperRemoval|apply|typeof|uiHash|_mouseUp|string|_mouseStart|unselectable|cssCache|attr|offsetHeight|min|while|snapping|currentItem|item|offsetWidth|hidden|do|HTML|sortables|triggerHandler|mouseDelayMet|null|_mouseDownEvent|delay|px|browser|cancel|html|_mouseCapture|div|original|_cursor|split|_clear|cssNamespace|destroy|dragging|_getData|distance|fn|removeClass|borderLeftWidth|get|_mouseDistanceMet|_mouseDelayMet|mouse|_mouseUpDelegate|clone|none|||||||||msie|_mouseMoveDelegate|_init|_zIndex|PAGEX_INCLUDES_SCROLL|OFFSET_PARENT_NOT_SCROLL_PARENT_X|_generatePosition|OFFSET_PARENT_NOT_SCROLL_PARENT_Y|widgetEventPrefix|cacheHelperProportions|max|PAGEY_INCLUDES_SCROLL|isFunction|borderTopWidth|for|overflowYOffset|sortable|push|overflowXOffset|absolutePosition|_opacity|_helper|cacheScrollParents|outerHeight|option|cursorAt|adjustOffsetFromHelper|getterSetter|on|prepareOffsets|scrollHeight|marginBottom|marginRight|metadata|widgetBaseClass|bottom|setContainment|right|_mouseInit|shouldRevert|_mouseMove|button|connectToSortable|MozUserSelect|selectstart|_mouseUnselectable|_mouseDown|snapItem|mousemove|parents|type|getHandle||release|5000px|mouseup|snapMode|||display|createHelper|outerWidth|dropBehaviour|jQuery|removeData|_mouseDestroy|placeholder|removeChild|round|input|arguments|default|class|rgba|transparent|backgroundColor|try|PAGE_UP|gen|backgroundImage|block|110|PERIOD|NUMPAD_ENTER|hasScroll|mousedown|NUMPAD_DIVIDE|enableSelection|NUMPAD_SUBTRACT|108|off|106|disableSelection|sortreceive|NUMPAD_MULTIPLY|PAGE_DOWN|109|catch|sender|RIGHT|inArray|nodeName|concat|getter|toLowerCase|LEFT|getData|Array|_|new|substring|eventPrefix|setData|slice|UP|TAB|SHIFT|event|fix|NUMPAD_DECIMAL|190|receive|deactivate|107|disable|enable|expr|_trigger|SPACE|NUMPAD_ADD|in|select|containerCache|visibility|fromSortable|ENTER|188|invalid|drop|111|dir|started|COMMA|String|scrollWidth|tabbable|constructor|valid|makeArray|001|1000|DOWN|fff|background|iframe|scope|END|DELETE|CONTROL|animate|revertDuration|500|sort|group|ESCAPE|items|textarea|toSortable|href|keyCode|BACKSPACE|snapTolerance|outer|tabIndex|preventDefault|_refreshItems|activate|which|filter|setTimeout|_mouseDelayTimer|continue|inner|current|resizable|marginLeft|marginTop|mozilla|CAPS_LOCK|is|HOME|find|andSelf|INSERT'.split('|'),0,{}))